Changeset 4089

Show
Ignore:
Timestamp:
06/02/07 14:16:34 (6 years ago)
Author:
DrewCormier
Message:

removed button. cleaned up code a little

Files:
1 modified

Legend:

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

    r4084 r4089  
    159159 
    160160        self.bmp = wx.StaticBitmap(parent=self, bitmap = temp_bmp) 
    161         #self.bmp = wx.EmptyBitmap(width=1000, height=1000, depth=-1) 
    162         self.StartBtn = wx.Button(id= -1, label= "Start ORB", name= "StartBtn",   
    163             parent= self, pos= wx.Point(1,1), size= wx.Size(200, 50))  
    164         self.StartBtn.Bind(wx.EVT_BUTTON, self.OnStartBtnButton, id = -1)  
    165  
    166  
    167     def OnStartBtnButton(self, event):  
    168         orb = ORB_Init(self,uuid, label)  
    169         event.Skip()  
    170  
    171161 
    172162    def refresh(self, image): 
     
    174164        size = temp.GetWidth(), temp.GetHeight() 
    175165        self.bmp = wx.StaticBitmap(parent=self, bitmap = temp) 
     166 
    176167 
    177168#------------------------------------------------------------------- 
     
    192183    def __init__(self): 
    193184 
    194         ## for non-global app: 
    195         #self.app = App() 
    196         #self.app_thread = threading.Thread(target=self.app.MainLoop) 
    197  
    198         #for global app: 
    199185        self.app_thread = threading.Thread(target=app.MainLoop) 
    200  
    201186        self.app_thread.start() 
    202187 
    203         ## with arguments: 
    204         #self.orb_thread = threading.Thread(target=ORB_Init(app.frame, uuid, label)) 
    205         #without arguments: 
    206188        self.orb_thread = threading.Thread(target=ORB_Init_fun) 
    207  
    208189        self.orb_thread.start() 
    209  
    210         print "\nthe orb thread has been started\n" 
    211190 
    212191   
     
    223202    print "Identifier - " + uuid + "  Label - " + label 
    224203    
    225     i_am_threading = True 
    226  
    227     if i_am_threading: 
    228         #for global app: 
    229         app = App() 
    230          
    231         threads_running = my_threads() 
    232      
    233     else: 
    234         app = App() 
    235         app.MainLoop()  
    236  
     204    app = App() 
     205         
     206    threads_running = my_threads() 
     207     
     208