Ticket #56139: pmg_tk_platform.patch
File pmg_tk_platform.patch, 1.8 KB (added by jwhowarth, 7 years ago) |
---|
-
modules/pmg_tk/PMGApp.py
229 229 self.fifo.put(cmmd) 230 230 231 231 def my_show(self,win,center=1): 232 if sys.platform!='linux2':232 if (sys.platform!='linux2') and (sys.platform!='darwin'): 233 233 win.show() 234 234 else: # autocenter, deiconify, and run mainloop 235 235 # this is a workaround for a bug in the … … 247 247 win.deiconify() 248 248 249 249 def my_withdraw(self,win): 250 if sys.platform!='linux2':250 if (sys.platform!='linux2') or (sys.platform!='darwin'): 251 251 win.withdraw() 252 252 else: 253 253 win.destroy() -
modules/pmg_tk/skins/normal/__init__.py
345 345 win.show() 346 346 347 347 def my_withdraw(self,win): 348 if sys.platform!='linux2':348 if (sys.platform!='linux2') and (sys.platform!='darwin'): 349 349 win.withdraw() 350 350 else: 351 351 win.destroy() 352 352 353 353 def my_activate(self,win,center=1,focus=None): 354 if sys.platform!='linux2':354 if (sys.platform!='linux2') and (sys.platform!='darwin'): 355 355 win.activate() 356 356 else: # autocenter, deiconify, and run mainloop 357 357 # this is a workaround for a bug in the … … 372 372 win.mainloop() 373 373 374 374 def my_deactivate(self,win): 375 if sys.platform!='linux2':375 if (sys.platform!='linux2') and (sys.platform!='darwin'): 376 376 win.deactivate() 377 377 else: # autocenter, deiconify, and run mainloop 378 378 win.destroy()