Ticket #33289: pmg_tk_platform.patch
File pmg_tk_platform.patch, 2.0 KB (added by howarth@…, 13 years ago) |
---|
-
modules/pmg_tk/skins/normal/__init__.py
old new 250 250 self.buttonArea.destroy() 251 251 252 252 def my_show(self,win,center=1): 253 if sys.platform!='linux2':253 if (sys.platform!='linux2') and (sys.platform!='darwin'): 254 254 win.show() 255 255 else: # autocenter, deiconify, and run mainloop 256 256 # this is a workaround for a bug in the … … 269 269 # win.show() 270 270 271 271 def my_withdraw(self,win): 272 if sys.platform!='linux2':272 if (sys.platform!='linux2') or (sys.platform!='darwin'): 273 273 win.withdraw() 274 274 else: 275 275 win.destroy() 276 276 277 277 def my_activate(self,win,center=1,focus=None): 278 if sys.platform!='linux2':278 if (sys.platform!='linux2') and (sys.platform!='darwin'): 279 279 win.activate() 280 280 else: # autocenter, deiconify, and run mainloop 281 281 # this is a workaround for a bug in the … … 296 296 win.mainloop() 297 297 298 298 def my_deactivate(self,win): 299 if sys.platform!='linux2':299 if (sys.platform!='linux2') or (sys.platform!='darwin'): 300 300 win.deactivate() 301 301 else: # autocenter, deiconify, and run mainloop 302 302 win.destroy() -
modules/pmg_tk/PMGApp.py
old new 219 219 220 220 221 221 def my_show(self,win,center=1): 222 if sys.platform!='linux2':222 if (sys.platform!='linux2') and (sys.platform!='darwin'): 223 223 win.show() 224 224 else: # autocenter, deiconify, and run mainloop 225 225 # this is a workaround for a bug in the … … 237 237 win.deiconify() 238 238 239 239 def my_withdraw(self,win): 240 if sys.platform!='linux2':240 if (sys.platform!='linux2') or (sys.platform!='darwin'): 241 241 win.withdraw() 242 242 else: 243 243 win.destroy()