unicode build, 2.8.1.1
First:
The combobox fills the whole place in the dialog, while in Ms Win
it is not.
Second:
Main problem for my app:
The EvtText should be called only once as on windows.
but on gtk, it is fired, when settext is called, and that leads
of source to an recursive error
import wx
class ComboBoxDlg(wx.Dialog):
"""ComboBoxEntryDialog."""
def __init__(self, parent, title='ComboBoxDlg', choices=[]):
"""Create the ComboBoxEntryDialog."""
wx.Dialog.__init__(self, parent, -1, title=title,
style=wx.DEFAULT_DIALOG_STYLE|wx.MAXIMIZE_BOX|wx.THICK_FRAME|wx.RESIZE_BORDER)
self.cb = wx.ComboBox(self, choices=choices, pos =((50,50)), size = ((100, 100)))
self.cb.Bind(wx.EVT_TEXT, self.EvtText)
def EvtText (self, event):
print "evt Text"
self.cb.SetValue(self.cb.GetValue() + " Hallo")
import wx
app = wx.App(0)
dlg = ComboBoxDlg(None, choices=['a', 'b', 'c'])
dlg.ShowModal()
dlg.Destroy()
app.MainLoop()
How can I discover, that the event is fired by SetValue() and then ignore it?
For a workaround for the time being.
in the form of
def EvtText (self, event):
if event_is_fired_by_SetValue)
return
···
--
Franz Steinhaeusler