1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/graphics/py-opengl/files/patch-ad
Maxim Sobolev dd9321f15a - Update to 1.5.6.a2;
- take over maintainership (mail addressed to the old maintainer bounces);
- use USE_PYTHON;
- new MASTER_SITES and WWW (project has been moved to Sourceforge).
2000-12-05 08:44:56 +00:00

26 lines
651 B
Plaintext

--- Tkinter.py.orig Mon Dec 4 19:27:43 2000
+++ Tkinter.py Mon Dec 4 19:36:19 2000
@@ -0,0 +1,22 @@
+import os
+
+class nullcall:
+ def __init(self):
+ pass
+ def call(self, a1='', a2='', a3='', a4='', a5=''):
+ os.system('echo' + ' ' + a1 + ' ' + a2 + ' ' + a3 + ' ' + a4 + \
+ ' ' + a5 + ' >> register.tcl')
+
+class Tk:
+ tk = None
+ def __init__(self):
+ self.tk = nullcall()
+ pass
+ def getvar(self, varname):
+ if varname == 'tk_version' or varname == 'tcl_version':
+ return '8.3'
+ if varname == 'tcl_library':
+ return '%%LOCALBASE%%/lib/tcl8.3'
+ if varname == 'tk_library':
+ return '%%LOCALBASE%%/lib/tk8.3'
+ return ''