ComboTreeBox innerhalb eines Dialoges reagiert nicht richtig
Verfasst: Samstag 19. Juni 2010, 22:59
Moin!
Folgender Code:
Im puren Frame funktioniert die Box wie erwartet. Im Dialog hingegen klappt sich die Auswahl zwar aus, ich kann aber keine Items anwaehlen oder ausklappen. Hat das schonmal jemand gesehen? (Debian Testing, Python sowohl 2.5.5 als auch 2.6.5, wx 2.8.10.1)
Folgender Code:
Code: Alles auswählen
import wx
from wx.lib.combotreebox import ComboTreeBox
class MyFrame(wx.Frame):
def __init__(self):
wx.Frame.__init__(self, parent=None)
combo = ComboTreeBox(self)
a = combo.Append("aaa")
b = combo.Append("bbb", a)
c = combo.Append("ccc", a)
self.Show(True)
class MyDialog(wx.Dialog):
def __init__(self, parent):
wx.Dialog.__init__(self, parent)
combo = ComboTreeBox(self)
a = combo.Append("aaa")
b = combo.Append("bbb", a)
c = combo.Append("ccc", a)
app = wx.PySimpleApp()
frame = MyFrame()
MyDialog(frame).ShowModal()
app.MainLoop()