mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
* Tlie.py: fixed broken compatible with Tile < 0.8
git-svn-id: file:///home/shlomif/Backup/svn-dumps/PySolFC/svnsync-repos/pysolfc/PySolFC/trunk@176 efabe8c0-fbe8-4139-b769-b5e6d273206e
This commit is contained in:
parent
2477ad8845
commit
0dc9d98caa
2 changed files with 3 additions and 4 deletions
|
@ -784,13 +784,10 @@ class Application:
|
|||
self.images = None
|
||||
self.subsampled_images = None
|
||||
self.gimages = Struct( # global images
|
||||
border = [],
|
||||
demo = [], # demo logos
|
||||
pause = [], # pause logos
|
||||
logos = [],
|
||||
redeal = [],
|
||||
##shade = [],
|
||||
##stats = [],
|
||||
)
|
||||
#self.progress_bg = None
|
||||
self.progress_images = []
|
||||
|
|
|
@ -23,7 +23,9 @@ def availableThemes(root=None):
|
|||
def setTheme(root=None, theme=None):
|
||||
if root is None:
|
||||
root = Tkinter._default_root
|
||||
return root.tk.call(_tile_prefix+"setTheme", theme)
|
||||
if TileVersion >= '0.8':
|
||||
return root.tk.call("ttk::setTheme", theme)
|
||||
return root.tk.call("tile::setTheme", theme)
|
||||
|
||||
|
||||
class Style(Tkinter.Misc):
|
||||
|
|
Loading…
Add table
Reference in a new issue