Ticket #42860: pmg_tk_platform.patch
File pmg_tk_platform.patch, 1.4 KB (added by mtiberti (Matteo Tiberti), 11 years ago) |
---|
-
modules/pmg_tk/skins/normal/__init__.py
259 259 self.buttonArea.destroy() 260 260 261 261 def my_show(self,win,center=1): 262 if sys.platform!='linux2':262 if (sys.platform!='linux2') and (sys.platform!='darwin'): 263 263 win.show() 264 264 else: # autocenter, deiconify, and run mainloop 265 265 # this is a workaround for a bug in the … … 278 278 # win.show() 279 279 280 280 def my_withdraw(self,win): 281 if sys.platform!='linux2':281 if (sys.platform!='linux2') or (sys.platform!='darwin'): 282 282 win.withdraw() 283 283 else: 284 284 win.destroy() 285 285 286 286 def my_activate(self,win,center=1,focus=None): 287 if sys.platform!='linux2':287 if (sys.platform!='linux2') and (sys.platform!='darwin'): 288 288 win.activate() 289 289 else: # autocenter, deiconify, and run mainloop 290 290 # this is a workaround for a bug in the … … 305 305 win.mainloop() 306 306 307 307 def my_deactivate(self,win): 308 if sys.platform!='linux2':308 if (sys.platform!='linux2') or (sys.platform!='darwin'): 309 309 win.deactivate() 310 310 else: # autocenter, deiconify, and run mainloop 311 311 win.destroy()