ich bastle gerade an einer wx.Frame-Klasse mit folgender Kopfzeile:
Code: Alles auswählen
class Frame(wx.Frame):
def __init__(self, parent=None, id=-1, title='', pos=(), style=0):
print 'Frame __init__'
wx.Frame.__init__(self, parent, id, title, pos, style)
Code: Alles auswählen
self.frame = Frame(parent=None, id=-1, title='EventUs', pos=(150,150), style=wx.DEFAULT_FRAME_STYLE ^ (wx.CLOSE_BOX))
- Traceback (most recent call last):
File "wxKalP.py", line 32, in <module>
app = App(redirect=True, filename='/home/claus/Desktop/err')
File "wxKalP.py", line 17, in __init__
wx.App.__init__(self, redirect, filename)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7912, in __init__
self._BootstrapApp()
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7487, in _BootstrapApp
return _core_.PyApp__BootstrapApp(*args, **kwargs)
File "wxKalP.py", line 21, in OnInit
self.frame = Frame(parent=None, id=-1, title='EventUs', pos=(150,150), style=wx.DEFAULT_FRAME_STYLE ^ (wx.CLOSE_BOX))
File "wxKalP.py", line 11, in __init__
wx.Frame.__init__(self, parent, id, title, pos, style)
File "/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode/wx/_windows.py", line 497, in __init__
_windows_.Frame_swiginit(self,_windows_.new_Frame(*args, **kwargs))
TypeError: Expected a 2-tuple of integers or a wxSize object.
Warum verhält sich der style-Parameter anderst als die anderen???
Danke schon mal für Eure Hilfe!!
Liebe Grüße
mutetella