[Tutor] From file2.py append an item to file1.py combobox
_ Dan _
danf_1979 at yahoo.es
Tue Aug 16 04:20:42 CEST 2005
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
More information about the Tutor
mailing list