git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12416
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class wxScrolledMessageDialog(wxDialog):
class wxScrolledMessageDialog(wxDialog):
- def __init__(self, parent, msg, caption, pos = None, size = None):
- if not pos:
- pos = wxDefaultPosition
- if not size:
- size = wxSize(500,300)
+ def __init__(self, parent, msg, caption, pos = wxDefaultPosition, size = (500,300)):
wxDialog.__init__(self, parent, -1, caption, pos, size)
text = wxTextCtrl(self, -1, msg, wxDefaultPosition,
wxDefaultSize,
wxDialog.__init__(self, parent, -1, caption, pos, size)
text = wxTextCtrl(self, -1, msg, wxDefaultPosition,
wxDefaultSize,
class wxMultipleChoiceDialog(wxDialog):
class wxMultipleChoiceDialog(wxDialog):
- def __init__(self, parent, msg, title, lst, pos = None, size = None):
- if not pos:
- pos = wxDefaultPosition
- if not size:
- size = wxSize(200,200)
+ def __init__(self, parent, msg, title, lst, pos = wxDefaultPosition, size = (200,200)):
wxDialog.__init__(self, parent, -1, title, pos, size)
dc = wxClientDC(self)
height = 0
wxDialog.__init__(self, parent, -1, title, pos, size)
dc = wxClientDC(self)
height = 0
self.SetAutoLayout(TRUE)
self.lst = lst
self.Layout()
self.SetAutoLayout(TRUE)
self.lst = lst
self.Layout()
- EVT_SIZE(self, self.OnSize)
-
- def OnSize(self, event):
- self.Layout()
def GetValue(self):
return self.lbox.GetSelections()
def GetValue(self):
return self.lbox.GetSelections()
val.append(self.lst[i])
return tuple(val)
val.append(self.lst[i])
return tuple(val)
if __name__ == '__main__':
class MyFrame(wxFrame):
def __init__(self):
if __name__ == '__main__':
class MyFrame(wxFrame):
def __init__(self):