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]),
TypeError: %x format: an integer is required, not float
Patch #7 fixes this: https://sourceforge.net/p/pmw/patches/7/