Re: wxPython having trouble with frame objects

2009-05-01 Thread Mike Driscoll
On May 1, 12:12 am, Soumen banerjee wrote: > Hello, > Im not adding any GUI elements from the changer thread. Im just > attempting to change the value of a preexisting widget made in thread > one. The point is that i need to display text generated in thread 2 in > a GUI generated in thread 1. > As

Re: wxPython having trouble with frame objects

2009-05-01 Thread Mike Driscoll
On Apr 30, 11:52 pm, Dave Angel wrote: > Soumen banerjee wrote: > > Hello, > > you say that  frame_1 is an attribute of the main class. The main > > class here is guithread right? so any instance of guithread should > > also have an attribute called frame_1 isnt it? Excuse me if im getting > > thi

Re: wxPython having trouble with frame objects

2009-05-01 Thread Dave Angel
Soumen banerjee wrote: Hello, The code works almost perfectly. I was able to correct some small things, and get it to work brilliantly. I would like to thank you for your dedicated help. My understanding of the matter here has improved by a lot due to your kind help. I will further work on your s

Re: wxPython having trouble with frame objects

2009-04-30 Thread Soumen banerjee
Hello, Im not adding any GUI elements from the changer thread. Im just attempting to change the value of a preexisting widget made in thread one. The point is that i need to display text generated in thread 2 in a GUI generated in thread 1. As far as inter thread synchronization is concerned, i see

Re: wxPython having trouble with frame objects

2009-04-30 Thread Dave Angel
Soumen banerjee wrote: Hello, you say that frame_1 is an attribute of the main class. The main class here is guithread right? so any instance of guithread should also have an attribute called frame_1 isnt it? Excuse me if im getting this wrong, since i am somewhat new to python. Regards Soumen

Re: wxPython having trouble with frame objects

2009-04-30 Thread Soumen banerjee
Hello, Another thing, here i tried changing self.frame_1 to guithread.frame_1, so that that part of the code now reads:- import wx,gui,threading class guithread(threading.Thread): def run(self): app = wx.PySimpleApp(0) wx.InitAllImageHandlers() guithread.frame_1 = gui.M

Re: wxPython having trouble with frame objects

2009-04-30 Thread Soumen banerjee
Hello, you say that frame_1 is an attribute of the main class. The main class here is guithread right? so any instance of guithread should also have an attribute called frame_1 isnt it? Excuse me if im getting this wrong, since i am somewhat new to python. Regards Soumen On Fri, May 1, 2009 at 9:

Re: wxPython having trouble with frame objects

2009-04-30 Thread CM
On Apr 30, 9:54 pm, Soumen banerjee wrote: > Hello, > I am using wxglade to design a gui which i am using in another script. > Here are the codes > > The main file: > import wx,gui,threading > class guithread(threading.Thread): >    def run(self): >        app = wx.PySimpleApp(0) >        wx.InitA

wxPython having trouble with frame objects

2009-04-30 Thread Soumen banerjee
Hello, I am using wxglade to design a gui which i am using in another script. Here are the codes The main file: import wx,gui,threading class guithread(threading.Thread):    def run(self):        app = wx.PySimpleApp(0)        wx.InitAllImageHandlers()        self.frame_1 = gui.MyFrame(None, -1, "