aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvidon2005-06-02 12:57:59 +0000
committervidon2005-06-02 12:57:59 +0000
commitaf84cd819fca9f9737724378df3df3488c200c4d (patch)
treee34c2cc9b5523380ccdd23812ecfb3b59639f599
parente446c9b3cb3efcba1cafd0d7de0494ef012502ba (diff)
downloadtkzinc-af84cd819fca9f9737724378df3df3488c200c4d.zip
tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.tar.gz
tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.tar.bz2
tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.tar.xz
closed #7
-rw-r--r--Python/library/Zinc.py.in7
1 files changed, 2 insertions, 5 deletions
diff --git a/Python/library/Zinc.py.in b/Python/library/Zinc.py.in
index 799e960..cc7d425 100644
--- a/Python/library/Zinc.py.in
+++ b/Python/library/Zinc.py.in
@@ -48,10 +48,7 @@ if nok : return 0 '''
global _VERSION
if (_LIBLOADED==1) : return _VERSION
try:
- if sys.platform == "win32":
- window.tk.call('eval', 'package require Tkzinc')
- else:
- window.tk.call('load', 'Tkzinc@MAJOR_VERSION@.@MINOR_VERSION@.@PATCHLEVEL@.so')
+ window.tk.call('eval', 'package require Tkzinc')
# Call a function from the package to autoload it
# and verify that all is OK.
sversion = window.tk.call('zinc') + " Zinc.py %s" % __version__
@@ -124,7 +121,7 @@ class Zinc(Widget):
The command has no effect if no item satisfy
the given criteria. The command returns an empty string.
"""
- self.tk.call(self._w, 'addtag', args)
+ self.tk.call(self._w, 'addtag', *args)
def addtag_above(self, newtag, tagOrId):
"""