Changeset 4089
- Timestamp:
- 06/02/07 14:16:34 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/image_display/trunk/image_display/image_display.py
r4084 r4089 159 159 160 160 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 171 161 172 162 def refresh(self, image): … … 174 164 size = temp.GetWidth(), temp.GetHeight() 175 165 self.bmp = wx.StaticBitmap(parent=self, bitmap = temp) 166 176 167 177 168 #------------------------------------------------------------------- … … 192 183 def __init__(self): 193 184 194 ## for non-global app:195 #self.app = App()196 #self.app_thread = threading.Thread(target=self.app.MainLoop)197 198 #for global app:199 185 self.app_thread = threading.Thread(target=app.MainLoop) 200 201 186 self.app_thread.start() 202 187 203 ## with arguments:204 #self.orb_thread = threading.Thread(target=ORB_Init(app.frame, uuid, label))205 #without arguments:206 188 self.orb_thread = threading.Thread(target=ORB_Init_fun) 207 208 189 self.orb_thread.start() 209 210 print "\nthe orb thread has been started\n"211 190 212 191 … … 223 202 print "Identifier - " + uuid + " Label - " + label 224 203 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