2006-08-02 13:59:57 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
""" Import externals """
|
|
|
|
import wx
|
|
|
|
import os.path
|
2006-08-11 12:04:22 +01:00
|
|
|
import sys
|
2006-08-02 13:59:57 +01:00
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
""" Import scyther-gui components """
|
|
|
|
import Misc
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def ScytherIcon(window):
|
|
|
|
""" Set a nice Scyther icon """
|
2006-08-11 12:04:22 +01:00
|
|
|
basedir = os.path.abspath(os.path.dirname(sys.argv[0]))
|
|
|
|
path = os.path.join(basedir,"Images")
|
|
|
|
iconfile = Misc.mypath(os.path.join(path,"scyther-gui-32.ico"))
|
2006-08-02 13:59:57 +01:00
|
|
|
if os.path.isfile(iconfile):
|
|
|
|
icon = wx.Icon(iconfile,wx.BITMAP_TYPE_ICO)
|
|
|
|
window.SetIcon(icon)
|
|
|
|
|
|
|
|
|