diff options
author | vidon | 2005-06-02 12:57:59 +0000 |
---|---|---|
committer | vidon | 2005-06-02 12:57:59 +0000 |
commit | af84cd819fca9f9737724378df3df3488c200c4d (patch) | |
tree | e34c2cc9b5523380ccdd23812ecfb3b59639f599 /Python/library | |
parent | e446c9b3cb3efcba1cafd0d7de0494ef012502ba (diff) | |
download | tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.zip tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.tar.gz tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.tar.bz2 tkzinc-af84cd819fca9f9737724378df3df3488c200c4d.tar.xz |
closed #7
Diffstat (limited to 'Python/library')
-rw-r--r-- | Python/library/Zinc.py.in | 7 |
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): """ |