Ticket #56139: pmg_tk_platform.patch

File pmg_tk_platform.patch, 1.8 KB (added by jwhowarth, 6 years ago)

revised pmg_tk_platform.patch to adjust for upstream context changes

  • modules/pmg_tk/PMGApp.py

     
    229229        self.fifo.put(cmmd)
    230230
    231231    def my_show(self,win,center=1):
    232         if sys.platform!='linux2':
     232        if (sys.platform!='linux2') and (sys.platform!='darwin'):
    233233            win.show()
    234234        else: # autocenter, deiconify, and run mainloop
    235235            # this is a workaround for a bug in the
     
    247247            win.deiconify()
    248248
    249249    def my_withdraw(self,win):
    250         if sys.platform!='linux2':
     250        if (sys.platform!='linux2') or (sys.platform!='darwin'):
    251251            win.withdraw()
    252252        else:
    253253            win.destroy()
  • modules/pmg_tk/skins/normal/__init__.py

     
    345345        win.show()
    346346           
    347347    def my_withdraw(self,win):
    348         if sys.platform!='linux2':
     348        if (sys.platform!='linux2') and (sys.platform!='darwin'):
    349349            win.withdraw()
    350350        else:
    351351            win.destroy()
    352352
    353353    def my_activate(self,win,center=1,focus=None):
    354         if sys.platform!='linux2':
     354        if (sys.platform!='linux2') and (sys.platform!='darwin'):
    355355            win.activate()
    356356        else: # autocenter, deiconify, and run mainloop
    357357            # this is a workaround for a bug in the
     
    372372            win.mainloop()
    373373           
    374374    def my_deactivate(self,win):
    375         if sys.platform!='linux2':
     375        if (sys.platform!='linux2') and (sys.platform!='darwin'):
    376376            win.deactivate()
    377377        else: # autocenter, deiconify, and run mainloop
    378378            win.destroy()