Changeset 4010

Show
Ignore:
Timestamp:
05/30/07 12:12:13 (6 years ago)
Author:
DrewCormier
Message:

added some experimental threading code

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/components/image_display/trunk/image_display/image_display.py

    r4008 r4010  
    161161 
    162162 
    163         self.StartBtn = wx.Button(id= -1, label= "Start", name= "StartBtn",  
    164             parent= self, pos= wx.Point(1,1), size= wx.Size(165, 50)) 
     163        self.StartBtn = wx.Button(id= -1, label= "Make Error", name= "StartBtn",  
     164            parent= self, pos= wx.Point(1,1), size= wx.Size(200, 50)) 
    165165        self.StartBtn.Bind(wx.EVT_BUTTON, self.OnStartBtnButton, id = -1) 
    166166 
     
    200200 
    201201 
    202   
     202class AppThread(threading.Thread): 
     203    def run(self): 
     204        app = App() 
     205        app.MainLoop() 
     206 
     207 
     208class ORBThread(threading.Thread): 
     209    def run(self): 
     210        orb = ORB_Init(uuid, label) 
     211 
     212     
    203213#------------------------------------------------------------------- 
    204214# Code run when this file is executed 
     
    213223    print "Identifier - " + uuid + "  Label - " + label 
    214224     
    215     # initialize the display 
    216     app = App() 
    217     app.MainLoop()   
    218  
    219      
    220  
     225    print "starting the App thread\n" 
     226    AppThread.start() 
     227 
     228    print "starting the ORB thread\n" 
     229    ORBThread.start() 
     230     
     231