#42 ScrolledFrame error: 'module' object has no attribute 'atof'


Date: Thu, 15 Aug 2013 22:36:30 +0000
From: Kieran Murray kieran.murray@hotmail.com
To: "gregm@iname.com" gregm@iname.com
Subject: Bug with ScrolledFrame


You are probably aware of the bug already but just in case. Bug report below.

AttributeError Exception in Tk callback
Function: <bound method="" ScrolledFrame.xview="" of="" <_Pmw.Pmw_2_0_0.lib.PmwScrolledFrame.ScrolledFrame="" object="" at="" 0x0000000003A1BDD8="">> (type: <class 'method'="">)
Args: ('moveto', '0.4982')
Traceback (innermost last):
File "C:\Python33\lib\site-packages\Pmw\Pmw_2_0_0\lib\PmwBase.py", line 1759, in call
return self.func(*args)
File "C:\Python33\lib\site-packages\Pmw\Pmw_2_0_0\lib\PmwScrolledFrame.py", line 147, in xview
value = string.atof(value)
AttributeError: 'module' object has no attribute 'atof'

The bug applies to the demo as well on the most up-to-date version of Pmw at the time of writing. The effect is to make the scroll bars useless.

Kind regards,

Kieran A. Murray


  • Adrian

    Adrian - 2013-08-17


    Thanks for the report. This has been fixed in the latest 2.0 file on the server (which I've dubbed RC1 since there's still some more work to do). The file also contains some minor bug fixes.

    If you choose to go with that file, you should be aware that it disables BLT functionality - just in case you were trying to use it. In order to enable it, check out Test.py (it has an enableBlt example function in there).

  • Adrian

    Adrian - 2013-08-17
    • status: open --> open-fixed
    • assigned_to: Adrian
    • Group: -->
  • Adrian

    Adrian - 2013-09-26
    • status: open-fixed --> closed-fixed

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