Ticket #46218: pmg_tk_platform.patch
File pmg_tk_platform.patch, 2.3 KB (added by howarth.at.macports@…, 10 years ago) |
---|
-
modules/pmg_tk/PMGApp.py
class PMGApp(Pmw.MegaWidget): 210 210 self.fifo.put(cmmd) 211 211 212 212 def my_show(self,win,center=1): 213 if sys.platform!='linux2':213 if (sys.platform!='linux2') and (sys.platform!='darwin'): 214 214 win.show() 215 215 else: # autocenter, deiconify, and run mainloop 216 216 # this is a workaround for a bug in the … … class PMGApp(Pmw.MegaWidget): 228 228 win.deiconify() 229 229 230 230 def my_withdraw(self,win): 231 if sys.platform!='linux2':231 if (sys.platform!='linux2') or (sys.platform!='darwin'): 232 232 win.withdraw() 233 233 else: 234 234 win.destroy() -
modules/pmg_tk/skins/normal/__init__.py
class Normal(PMGSkin): 271 271 self.buttonArea.destroy() 272 272 273 273 def my_show(self,win,center=1): 274 if sys.platform!='linux2':274 if (sys.platform!='linux2') and (sys.platform!='darwin'): 275 275 win.show() 276 276 else: # autocenter, deiconify, and run mainloop 277 277 # this is a workaround for a bug in the … … class Normal(PMGSkin): 290 290 # win.show() 291 291 292 292 def my_withdraw(self,win): 293 if sys.platform!='linux2':293 if (sys.platform!='linux2') or (sys.platform!='darwin'): 294 294 win.withdraw() 295 295 else: 296 296 win.destroy() 297 297 298 298 def my_activate(self,win,center=1,focus=None): 299 if sys.platform!='linux2':299 if (sys.platform!='linux2') and (sys.platform!='darwin'): 300 300 win.activate() 301 301 else: # autocenter, deiconify, and run mainloop 302 302 # this is a workaround for a bug in the … … class Normal(PMGSkin): 317 317 win.mainloop() 318 318 319 319 def my_deactivate(self,win): 320 if sys.platform!='linux2':320 if (sys.platform!='linux2') or (sys.platform!='darwin'): 321 321 win.deactivate() 322 322 else: # autocenter, deiconify, and run mainloop 323 323 win.destroy()