Hi to all: How can I append some data from file1.py to a combobox on file2.py? I know, if you want to append data to a combobox inside the same script, I would be like follows:
# file1.py import wx class Myframe(wx.Frame): def __init__(self, *args, **kwds): ... self.mycombobox = wx.Combobox(... ... # and then... self.mycombobox.Append("Item") # would append to the combobox a new item. # file2.py # So here are my problems... # I got: import wx,file1 class Subframe(wx.Frame): def __init__(self, *args, **kwds) ... def Mymethod(self,event): file1.Myframe.mycombobox.Append("Item") # and it doesnt work... # file1.Myframe.self.mycombobox.Append("item") # does not work either.. What can I do? thanks in advance Daniel. ______________________________________________ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor