From af84cd819fca9f9737724378df3df3488c200c4d Mon Sep 17 00:00:00 2001 From: vidon Date: Thu, 2 Jun 2005 12:57:59 +0000 Subject: closed #7 --- Python/library/Zinc.py.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Python') 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): """ -- cgit v1.1