dannylynncole / python-ttk

Automatically exported from code.google.com/p/python-ttk
0 stars 0 forks source link

Adapted theming.py for Python 3.0 #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
fixed imports etc.

see attachment.

still there is a traceback, but i'm not sure how to fix it, because i do not 
know a lot about the 
internals

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.0/lib/python3.0/tkinter/__init__.py", 
line 1405, in __call__
    return self.func(*args)
  File "theming.py", line 750, in _change_theme
    self._change_preview(treeview, invalid=True)
  File "theming.py", line 562, in _change_preview
    self._remove_previous_widgets()
  File "theming.py", line 573, in _remove_previous_widgets
    widgets = self._configframe.pack_slaves() + self._mapframe.pack_slaves()
TypeError: unsupported operand type(s) for +: 'map' and 'map'

Original issue reported on code.google.com by kaweh.ka...@gmail.com on 16 Dec 2008 at 12:08

Attachments:

GoogleCodeExporter commented 8 years ago
The easiest way to fix that is to change:

widgets = self._configframe.pack_slaves() + self._mapframe.pack_slaves()

to:

widgets = list(self._configframe.pack_slaves()) + 
list(self._mapframe.pack_slaves())

Thanks for the updates.

Original comment by ggpolo on 16 Dec 2008 at 12:18

GoogleCodeExporter commented 8 years ago

Original comment by ggpolo on 23 Dec 2008 at 6:21

GoogleCodeExporter commented 8 years ago
Have you worked more on this ?

Original comment by ggpolo on 18 Feb 2009 at 9:28