mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
* added missing Tile.Style instance for aqua winsystem
- pruned some dead code from macosx app support git-svn-id: https://pysolfc.svn.sourceforge.net/svnroot/pysolfc/PySolFC/trunk@136 39dd0a4e-7c14-0410-91b3-c4f2d318f732
This commit is contained in:
parent
9dc3e194af
commit
22693f6a28
2 changed files with 1 additions and 3 deletions
|
@ -20,6 +20,4 @@ def setupApp(app):
|
||||||
Perform setup for the OSX application bundle.
|
Perform setup for the OSX application bundle.
|
||||||
"""
|
"""
|
||||||
if not runningAsOSXApp(): return
|
if not runningAsOSXApp(): return
|
||||||
|
|
||||||
hideTkConsole(app.top)
|
hideTkConsole(app.top)
|
||||||
#overrideRootMenu(root, flist)
|
|
||||||
|
|
|
@ -32,11 +32,11 @@ class initRootWindow(baseInitRootWindow):
|
||||||
def __init__(self, root, app):
|
def __init__(self, root, app):
|
||||||
baseInitRootWindow.__init__(self, root, app)
|
baseInitRootWindow.__init__(self, root, app)
|
||||||
if TOOLKIT == 'tk':
|
if TOOLKIT == 'tk':
|
||||||
#setupApp(app)
|
|
||||||
hideTkConsole(root)
|
hideTkConsole(root)
|
||||||
if TOOLKIT == 'gtk':
|
if TOOLKIT == 'gtk':
|
||||||
pass
|
pass
|
||||||
elif USE_TILE:
|
elif USE_TILE:
|
||||||
|
style = Tile.Style(root)
|
||||||
color = style.lookup('.', 'background')
|
color = style.lookup('.', 'background')
|
||||||
if color:
|
if color:
|
||||||
root.tk_setPalette(color) # for non-Tile widgets
|
root.tk_setPalette(color) # for non-Tile widgets
|
||||||
|
|
Loading…
Add table
Reference in a new issue