Python Forum
The PMW Notebook Widget
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The PMW Notebook Widget
#4
https://sourceforge.net/p/pmw/bugs/51/ Wrote:Pmw.Color.bordercolors() fails in Python 3. It seems to be assuming integer division. The clearest demonstration is to invoke directly or run a Notebook demo.

Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32 bit (Inte
l)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import Pmw
>>> Pmw.Color.bordercolors(None, '#123456')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python36_32\lib\site-packages\Pmw\Pmw_2_0_1\lib\PmwColor.py", line 36
2, in bordercolors
    '#%04x%04x%04x' % (lightRGB[0], lightRGB[1], lightRGB[2]),
Error:
TypeError: %x format: an integer is required, not float
Discussion
Thomas Holder

Thomas Holder - 2018-10-26
Patch #7 fixes this: https://sourceforge.net/p/pmw/patches/7/
Reply


Messages In This Thread
The PMW Notebook Widget - by MattSA - May-28-2019, 05:01 PM
RE: The PMW Notebook Widget - by Yoriz - May-28-2019, 06:07 PM
RE: The PMW Notebook Widget - by MattSA - May-28-2019, 07:54 PM
RE: The PMW Notebook Widget - by Yoriz - May-28-2019, 08:50 PM
RE: The PMW Notebook Widget - by MattSA - May-29-2019, 04:08 PM
RE: The PMW Notebook Widget - by MattSA - Jun-03-2019, 05:05 PM
RE: The PMW Notebook Widget - by Larz60+ - Jun-03-2019, 07:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Adding New TAB to NoteBook Widget by Clicking Vicolas 0 2,611 Feb-15-2019, 06:03 PM
Last Post: Vicolas

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020