Changeset 72
- Timestamp:
- 01/18/05 19:08:44 (20 years ago)
- Location:
- pykoticon/trunk
- Files:
-
- 1 added
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/bin/pykoticon
r67 r72 277 277 size = (460, -1), \ 278 278 style = wxPython.wx.wxDEFAULT_FRAME_STYLE \ 279 | wxPython.wx.wxSIZE_AUTO_HEIGHT \ 280 | wxPython.wx.wxSIZE_AUTO_WIDTH \ 281 | wxPython.wx.wxICONIZE \ 279 282 | wxPython.wx.wxNO_FULL_REPAINT_ON_RESIZE) 283 self.tbicon = wxPython.wx.wxTaskBarIcon() 284 280 285 self.greenicon = wxPython.wx.wxIcon(os.path.join("..", "icons", "pykoticon-green.ico"), \ 281 286 wxPython.wx.wxBITMAP_TYPE_ICO) 282 287 self.redicon = wxPython.wx.wxIcon(os.path.join("..", "icons", "pykoticon-red.ico"), \ 283 288 wxPython.wx.wxBITMAP_TYPE_ICO) 289 284 290 self.SetIcon(self.greenicon) 285 286 self.tbicon = wxPython.wx.wxTaskBarIcon()287 291 self.tbicon.SetIcon(self.greenicon, "PyKotIcon") 288 292 … … 322 326 if self.User.LimitBy == "balance" : 323 327 if self.User.Balance <= 0.0 : 328 self.SetIcon(self.redicon) 324 329 self.tbicon.SetIcon(self.redicon, "PyKotIcon") 325 330 else : 331 self.SetIcon(self.greenicon) 326 332 self.tbicon.SetIcon(self.greenicon, "PyKotIcon") 327 333 else : … … 338 344 break 339 345 if isRed is True : 346 self.SetIcon(self.redicon) 340 347 self.tbicon.SetIcon(self.redicon, "PyKotIcon") 341 348 else : 349 self.SetIcon(self.greenicon) 342 350 self.tbicon.SetIcon(self.greenicon, "PyKotIcon") 343 351 if hasattr(self, "quotasgrid") : … … 352 360 353 361 def OnIconify(self, event) : 354 #self.Hide() 355 pass 362 self.Hide() 356 363 357 364 def OnTaskBarActivate(self, event) : … … 383 390 def OnTaskBarClose(self, evt) : 384 391 self.Close() 385 wxPython.wx.wxGetApp().ProcessIdle()386 387 class PyKotIconApp(wx Python.wx.wxApp):392 #wxPython.wx.wxGetApp().ProcessIdle() 393 394 class PyKotIconApp(wx.PySimpleApp): 388 395 def OnInit(self) : 389 396 try : … … 443 450 print "\tPrice per Job : ", printer.PricePerJob 444 451 print 445 446 447 452 448 453 if __name__ == '__main__':