Getting error when executing code for UI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psbasha
    Contributor
    • Feb 2007
    • 440

    #1

    Getting error when executing code for UI

    Hi ,

    I am getting the following error in ActiveState ActivePython2.4 ,when executing the UI which I worked in Python2.4.2 downloaded from www.Python.org

    ---------------------------------------------------------------------------------------------------------
    >>> Traceback (most recent call last):
    File "C:\Python24\Li b\site-packages\python win\pywin\frame work\scriptutil s.py", line 307, in RunScript
    debugger.run(co deObject, __main__.__dict __, start_stepping= 0)
    File "C:\Python24\Li b\site-packages\python win\pywin\debug ger\__init__.py ", line 60, in run
    _GetCurrentDebu gger().run(cmd, globals,locals, start_stepping)
    File "C:\Python24\Li b\site-packages\python win\pywin\debug ger\debugger.py ", line 631, in run
    exec cmd in globals, locals
    File "C:\Shakil\Test Files\main.py", line 519, in ?
    RootWindow=Tix. Tk()
    File "C:\Python24\li b\lib-tk\Tix.py", line 210, in __init__
    self.tk.eval('p ackage require Tix')
    TclError: couldn't load library "tix8184.dl l": this library or a dependent library could not be found in library path

    ---------------------------------------------------------------------------------------------------------
    Can anybody help me in resolving this compilation error.

    Thanks in advance
    PSB
  • psbasha
    Contributor
    • Feb 2007
    • 440

    #2
    Whether we have to install the "Tkinter" module, and its extension, the "Tix "module.

    Comment

    • bartonc
      Recognized Expert Expert
      • Sep 2006
      • 6478

      #3
      Originally posted by psbasha
      Hi ,

      I am getting the following error in ActiveState ActivePython2.4 ,when executing the UI which I worked in Python2.4.2 downloaded from www.Python.org

      ---------------------------------------------------------------------------------------------------------
      >>> Traceback (most recent call last):
      File "C:\Python24\Li b\site-packages\python win\pywin\frame work\scriptutil s.py", line 307, in RunScript
      debugger.run(co deObject, __main__.__dict __, start_stepping= 0)
      File "C:\Python24\Li b\site-packages\python win\pywin\debug ger\__init__.py ", line 60, in run
      _GetCurrentDebu gger().run(cmd, globals,locals, start_stepping)
      File "C:\Python24\Li b\site-packages\python win\pywin\debug ger\debugger.py ", line 631, in run
      exec cmd in globals, locals
      File "C:\Shakil\Test Files\main.py", line 519, in ?
      RootWindow=Tix. Tk()
      File "C:\Python24\li b\lib-tk\Tix.py", line 210, in __init__
      self.tk.eval('p ackage require Tix')
      TclError: couldn't load library "tix8184.dl l": this library or a dependent library could not be found in library path

      ---------------------------------------------------------------------------------------------------------
      Can anybody help me in resolving this compilation error.

      Thanks in advance
      PSB
      I had installed Tix once, but didn't like the way it changed the look of some widgets. In my "D:\Python24\Li b\lib-tk" directory, there is no Tix package. So you must have previously installed Tix and need to do that for you AS distro as well.
      If you are not using any Tix widgets, you can change
      Code:
          RootWindow=Tix.Tk()
      to
      Code:
          RootWindow=Tk()

      Comment

      Working...