aboutsummaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorlecoanet2005-04-18 14:02:47 +0000
committerlecoanet2005-04-18 14:02:47 +0000
commit2c7cf4d74bfcb7d299c2d169b4a5fbd321b5e117 (patch)
tree60568ffacb25f4fdece9d26d28a3c51464b33a3e /Python
parent733d230dedf0c5642ee8509bc833ae41750d373c (diff)
downloadtkzinc-2c7cf4d74bfcb7d299c2d169b4a5fbd321b5e117.zip
tkzinc-2c7cf4d74bfcb7d299c2d169b4a5fbd321b5e117.tar.gz
tkzinc-2c7cf4d74bfcb7d299c2d169b4a5fbd321b5e117.tar.bz2
tkzinc-2c7cf4d74bfcb7d299c2d169b4a5fbd321b5e117.tar.xz
Use package require to load the widget under windows.
Diffstat (limited to 'Python')
-rw-r--r--Python/library/Zinc.py.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/library/Zinc.py.in b/Python/library/Zinc.py.in
index 4936556..b832fdf 100644
--- a/Python/library/Zinc.py.in
+++ b/Python/library/Zinc.py.in
@@ -60,9 +60,9 @@ if nok : return 0 '''
if (_LIBLOADED==1) : return _VERSION
try:
if sys.platform == "win32":
- window.tk.call('load', 'Tkzinc@WIN_VERSION@.dll')
+ window.tk.call('eval', 'package require Tkzinc')
else:
- window.tk.call('load', '@Tkzinc_LIB_FILE@')
+ window.tk.call('load', 'Tkzinc@MAJOR_VERSION@.@MINOR_VERSION@.@PATCHLEVEL@.so')
# Call a function from the package to autoload it
# and verify that all is OK.
sversion = window.tk.call('zinc') + " Zinc.py %s" % __version__