wx.wxStyledTextEventPtr = wxStyledTextEventPtr
wx.wxStyledTextCtrlPtr = wxStyledTextCtrlPtr
+
+
+wxSTC_CARET_CENTER = wxSTC_CARET_STRICT
wx.wxStyledTextEventPtr = wxStyledTextEventPtr
wx.wxStyledTextCtrlPtr = wxStyledTextCtrlPtr
+
+
+wxSTC_CARET_CENTER = wxSTC_CARET_STRICT
wxPoint(8, 10))
wxStaticText(self, -1, "Select one:", wxPoint(15, 50), wxSize(75, 18))
- cb = wxComboBox(self, 500, "default value", wxPoint(80, 50), wxSize(95, -1),
- sampleList, wxCB_DROPDOWN|wxTE_PROCESS_ENTER)
+ cb = wxComboBox(self, 500, "default value", wxPoint(90, 50), wxSize(95, -1),
+ sampleList, wxCB_DROPDOWN)#|wxTE_PROCESS_ENTER)
EVT_COMBOBOX(self, 500, self.EvtComboBox)
EVT_TEXT(self, 500, self.EvtText)
EVT_TEXT_ENTER(self, 500, self.EvtTextEnter)
cb.Append("foo", "This is some client data for this item")
- cb = wxComboBox(self, 501, "default value", wxPoint(80, 80), wxSize(95, -1),
+ cb = wxComboBox(self, 501, "default value", wxPoint(90, 80), wxSize(95, -1),
[], wxCB_SIMPLE)
for item in sampleList:
cb.Append(item, string.upper(item))
+overview = """\
+A combobox is like a combination of an edit control and a listbox. It can be displayed as static list with editable or read-only text field; or a drop-down list with text field; or a drop-down list without a text field.
+"""
+if __name__ == '__main__':
+ import sys,os
+ import run
+ run.main(['', os.path.basename(sys.argv[0])])
-overview = """\
-A combobox is like a combination of an edit control and a listbox. It can be displayed as static list with editable or read-only text field; or a drop-down list with text field; or a drop-down list without a text field.
-
-"""
bool CreateGrid( int numRows, int numCols,
WXGRIDSELECTIONMODES selmode = wxGrid::wxGridSelectCells );
void SetSelectionMode(WXGRIDSELECTIONMODES selmode);
+ WXGRIDSELECTIONMODES GetSelectionMode();
// ------ grid dimensions
void EndBatch();
int GetBatchCount();
void ForceRefresh();
- void Refresh(bool eraseb=TRUE, wxRect* rect= NULL);
+ void Refresh(bool eraseb=TRUE, const wxRect* rect= NULL);
// ------ edit control functions
bool IsInSelection( int row, int col );
// TODO: ??? bool IsInSelection( const wxGridCellCoords& coords )
+// TODO: These need typemaps
+// wxGridCellCoordsArray GetSelectedCells() const;
+// wxGridCellCoordsArray GetSelectionBlockTopLeft() const;
+// wxGridCellCoordsArray GetSelectionBlockBottomRight() const;
+// wxArrayInt GetSelectedRows() const;
+// wxArrayInt GetSelectedCols() const;
+
// This function returns the rectangle that encloses the block of cells
// limited by TopLeft and BottomRight cell in device coords and clipped
return _resultobj;
}
+#define wxGrid_GetSelectionMode(_swigobj) (_swigobj->GetSelectionMode())
+static PyObject *_wrap_wxGrid_GetSelectionMode(PyObject *self, PyObject *args, PyObject *kwargs) {
+ PyObject * _resultobj;
+ WXGRIDSELECTIONMODES _result;
+ wxGrid * _arg0;
+ PyObject * _argo0 = 0;
+ char *_kwnames[] = { "self", NULL };
+
+ self = self;
+ if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxGrid_GetSelectionMode",_kwnames,&_argo0))
+ return NULL;
+ if (_argo0) {
+ if (_argo0 == Py_None) { _arg0 = NULL; }
+ else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxGrid_p")) {
+ PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxGrid_GetSelectionMode. Expected _wxGrid_p.");
+ return NULL;
+ }
+ }
+{
+ PyThreadState* __tstate = wxPyBeginAllowThreads();
+ _result = (WXGRIDSELECTIONMODES )wxGrid_GetSelectionMode(_arg0);
+
+ wxPyEndAllowThreads(__tstate);
+ if (PyErr_Occurred()) return NULL;
+} _resultobj = Py_BuildValue("i",_result);
+ return _resultobj;
+}
+
#define wxGrid_GetNumberRows(_swigobj) (_swigobj->GetNumberRows())
static PyObject *_wrap_wxGrid_GetNumberRows(PyObject *self, PyObject *args, PyObject *kwargs) {
PyObject * _resultobj;
{ "wxGrid_ProcessTableMessage", (PyCFunction) _wrap_wxGrid_ProcessTableMessage, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetNumberCols", (PyCFunction) _wrap_wxGrid_GetNumberCols, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_GetNumberRows", (PyCFunction) _wrap_wxGrid_GetNumberRows, METH_VARARGS | METH_KEYWORDS },
+ { "wxGrid_GetSelectionMode", (PyCFunction) _wrap_wxGrid_GetSelectionMode, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_SetSelectionMode", (PyCFunction) _wrap_wxGrid_SetSelectionMode, METH_VARARGS | METH_KEYWORDS },
{ "wxGrid_CreateGrid", (PyCFunction) _wrap_wxGrid_CreateGrid, METH_VARARGS | METH_KEYWORDS },
{ "new_wxGrid", (PyCFunction) _wrap_new_wxGrid, METH_VARARGS | METH_KEYWORDS },
def SetSelectionMode(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_SetSelectionMode,(self,) + _args, _kwargs)
return val
+ def GetSelectionMode(self, *_args, **_kwargs):
+ val = apply(gridc.wxGrid_GetSelectionMode,(self,) + _args, _kwargs)
+ return val
def GetNumberRows(self, *_args, **_kwargs):
val = apply(gridc.wxGrid_GetNumberRows,(self,) + _args, _kwargs)
return val
self.autoCallTip = 1
self.CallTipSetBackground(wxColour(255, 255, 232))
self.wrap()
+ self.SetEndAtLastLine(false)
def showIntro(self, text=''):
"""Display introductory text in the shell."""
self.write(self.interp.introText)
except AttributeError:
pass
+ wxCallAfter(self.ScrollToLine, 0)
def setBuiltinKeywords(self):
"""Create pseudo keywords as part of builtins.