git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5217
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
def runTest(frame, nb, log):
win = wxPanel(nb, -1)
def runTest(frame, nb, log):
win = wxPanel(nb, -1)
- ed = wxEditor(win)
- pyed = wxPyEditor(win)
+ ed = wxEditor(win, -1, style=wxSUNKEN_BORDER)
+ pyed = wxPyEditor(win, -1, style=wxSUNKEN_BORDER)
box = wxBoxSizer(wxVERTICAL)
box.Add(ed, 1, wxALL|wxGROW, 5)
box.Add(pyed, 1, wxALL|wxGROW, 5)
box = wxBoxSizer(wxVERTICAL)
box.Add(ed, 1, wxALL|wxGROW, 5)
box.Add(pyed, 1, wxALL|wxGROW, 5)
class wxEditor(wxScrolledWindow):
class wxEditor(wxScrolledWindow):
- def __init__(self, parent, id=-1):
+ def __init__(self, parent, id,
+ pos=wxDefaultPosition, size=wxDefaultSize, style=0):
###############################################################
"""
Alles hat einen Anfang
"""
wxScrolledWindow.__init__(self, parent, id,
###############################################################
"""
Alles hat einen Anfang
"""
wxScrolledWindow.__init__(self, parent, id,
- wxDefaultPosition, wxSize(500,400),
- wxSUNKEN_BORDER|wxWANTS_CHARS)
+ pos, size,
+ style|wxWANTS_CHARS)
# the syntax informations, if they don't exist,
# all syntax stuff will be ignored
# the syntax informations, if they don't exist,
# all syntax stuff will be ignored
# ------------------------------------------------------------------
# ------------------------------------------------------------------
- def __init__(self, parent, id=-1):
- wxEditor.__init__(self, parent, id)
+ def __init__(self, parent, id,
+ pos=wxDefaultPosition, size=wxDefaultSize, style=0):
+ wxEditor.__init__(self, parent, id, pos, size, style)
self.SetFontTab([
wxNamedColour('black'),
wxNamedColour('blue'),
self.SetFontTab([
wxNamedColour('black'),
wxNamedColour('blue'),