mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
29 lines
662 B
Plaintext
29 lines
662 B
Plaintext
|
|
$FreeBSD$
|
|
|
|
--- Tkinter.py.orig Tue Jan 14 19:47:57 2003
|
|
+++ Tkinter.py Tue Jan 14 19:57:55 2003
|
|
@@ -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.4'
|
|
+ if varname == 'tcl_library':
|
|
+ return '%%LOCALBASE%%/lib/tcl8.4'
|
|
+ if varname == 'tk_library':
|
|
+ return '%%LOCALBASE%%/lib/tk8.4'
|
|
+ return ''
|