Pmw2 and Python 2.7

Help
2014-01-02
2014-01-02
  • RonF from ECI

    RonF from ECI - 2014-01-02

    I don't think Pmw2 will work with python 2.x.

    I get the following error when I try to initialize:

    C:\Users\Ron Fredericks\AppData\Local\Enthought\Canopy\User\lib\site-packages\Pmw\Pmw_2_0_0\lib\PmwLoader.pyc in _initialise(self)
    87 if path == searchpath[-1]:
    88 # No PmwBase module found.
    ---> 89 raise ImportError(msg)
    90
    91 for k,v in list(basemodule.dict.items()):

    ImportError: No module named tkinter

    Here is the code I am trying to run:

    import Tkinter
    import Pmw
    root=Tkinter.Tk()
    Pmw.initialise(root)

    I am using the following environment:

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Ron Fredericks>python
    Enthought Canopy Python 2.7.3 | 64-bit | (default, Aug 8 2013, 05:30:12) [MSC v
    .1500 64 bit (AMD64)]
    on win32
    Type "help", "copyright", "credits" or "license" for more information.

     
    • Adrian

      Adrian - 2014-01-02

      Ron,

      Pmw2 is the Python 3 version of Pmw - other than that, there's no great
      difference yet. Just use Pmw for Python2 and it should work well.

      On Thu, Jan 2, 2014 at 2:54 AM, RonF from ECI ronf@users.sf.net wrote:

      I don't think Pmw2 will work with python 2.x.
      I get the following error when I try to initialize:

      C:\Users\Ron
      Fredericks\AppData\Local\Enthought\Canopy\User\lib\site-packages\Pmw\Pmw_2_0_0\lib\PmwLoader.pyc
      in _initialise(self)
      87 if path == searchpath[-1]:
      88 # No PmwBase module found.
      ---> 89 raise ImportError(msg)
      90
      91 for k,v in list(basemodule.dict.items()):

      ImportError: No module named tkinter
      Here is the code I am trying to run:

      import Tkinter
      import Pmw
      root=Tkinter.Tk()
      Pmw.initialise(root)
      I am using the following environment:

      Microsoft Windows [Version 6.1.7601]
      Copyright (c) 2009 Microsoft Corporation. All rights reserved.

      C:\Users\Ron Fredericks>python
      Enthought Canopy Python 2.7.3 | 64-bit | (default, Aug 8 2013, 05:30:12) [MSC
      v
      .1500 64 bit (AMD64)]
      on win32
      Type "help", "copyright", "credits" or "license" for more information.


      Pmw2 and Python 2.7https://sourceforge.net/p/pmw/discussion/33675/thread/533c0533/?limit=25#0095

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/pmw/discussion/33675/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --

      Adrian Hada

       
  • RonF from ECI

    RonF from ECI - 2014-01-02

    Thanks Adrian.

    I saw the lower case import tkinter in the demos and thought there may be some reason for this. But it might be helpful to make this clear in the project description or release notes.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks