public
Created

patch for pymol pmg_tk to install on OSX with free glut

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
--- pymol/modules/pmg_tk/skins/normal/__init__.py 2012-12-13 01:19:10.000000000 +0900
+++ pymol_new/modules/pmg_tk/skins/normal/__init__.py 2012-12-13 01:15:42.000000000 +0900
@@ -250,7 +250,7 @@
self.buttonArea.destroy()
def my_show(self,win,center=1):
- if sys.platform!='linux2':
+ if (sys.platform!='linux2') and (sys.platform!='darwin'):
win.show()
else: # autocenter, deiconify, and run mainloop
# this is a workaround for a bug in the
@@ -269,13 +269,13 @@
# win.show()
def my_withdraw(self,win):
- if sys.platform!='linux2':
+ if (sys.platform!='linux2') or (sys.platform!='darwin'):
win.withdraw()
else:
win.destroy()
def my_activate(self,win,center=1,focus=None):
- if sys.platform!='linux2':
+ if (sys.platform!='linux2') and (sys.platform!='darwin'):
win.activate()
else: # autocenter, deiconify, and run mainloop
# this is a workaround for a bug in the
@@ -296,7 +296,7 @@
win.mainloop()
def my_deactivate(self,win):
- if sys.platform!='linux2':
+ if (sys.platform!='linux2') or (sys.platform!='darwin'):
win.deactivate()
else: # autocenter, deiconify, and run mainloop
win.destroy()
--- pymol/modules/pmg_tk/PMGApp.py 2012-12-13 01:19:10.000000000 +0900
+++ pymol_new/modules/pmg_tk/PMGApp.py 2012-12-13 01:15:42.000000000 +0900
@@ -184,7 +184,7 @@
self.fifo.put(cmmd)
def my_show(self,win,center=1):
- if sys.platform!='linux2':
+ if (sys.platform!='linux2') and (sys.platform!='darwin'):
win.show()
else: # autocenter, deiconify, and run mainloop
# this is a workaround for a bug in the
@@ -202,7 +202,7 @@
win.deiconify()
def my_withdraw(self,win):
- if sys.platform!='linux2':
+ if (sys.platform!='linux2') or (sys.platform!='darwin'):
win.withdraw()
else:
win.destroy()

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.