Ticket #42860: pmg_tk_platform.patch

File pmg_tk_platform.patch, 1.4 KB (added by mtiberti (Matteo Tiberti), 10 years ago)
  • modules/pmg_tk/skins/normal/__init__.py

     
    259259        self.buttonArea.destroy()
    260260
    261261    def my_show(self,win,center=1):
    262         if sys.platform!='linux2':
     262        if (sys.platform!='linux2') and (sys.platform!='darwin'):
    263263            win.show()
    264264        else: # autocenter, deiconify, and run mainloop
    265265            # this is a workaround for a bug in the
     
    278278#         win.show()
    279279           
    280280    def my_withdraw(self,win):
    281         if sys.platform!='linux2':
     281        if (sys.platform!='linux2') or (sys.platform!='darwin'):
    282282            win.withdraw()
    283283        else:
    284284            win.destroy()
    285285
    286286    def my_activate(self,win,center=1,focus=None):
    287         if sys.platform!='linux2':
     287        if (sys.platform!='linux2') and (sys.platform!='darwin'):
    288288            win.activate()
    289289        else: # autocenter, deiconify, and run mainloop
    290290            # this is a workaround for a bug in the
     
    305305            win.mainloop()
    306306           
    307307    def my_deactivate(self,win):
    308         if sys.platform!='linux2':
     308        if (sys.platform!='linux2') or (sys.platform!='darwin'):
    309309            win.deactivate()
    310310        else: # autocenter, deiconify, and run mainloop
    311311            win.destroy()