Reworked config.py (better variable names autodetection)

This commit is contained in:
Niklas Bölter
2010-11-13 17:40:02 +01:00
parent f1abd40ffa
commit d2d1759601
5 changed files with 26 additions and 15 deletions

View File

@@ -81,8 +81,8 @@ def getImage(name, location):
path = os.path.join(location, "%s.png" % name)
else:
location = os.path.join(config.path, location)
location = os.path.join(config.pyfaPath, location)
path = os.path.join(location, name + ".png")
if os.path.exists(path):
return wx.Image(path)

View File

@@ -722,7 +722,7 @@ class ListPane (wx.ScrolledWindow):
self.Bind(wx.EVT_SCROLLWIN_LINEUP, self.MScrollUp)
self.Bind(wx.EVT_SCROLLWIN_LINEDOWN, self.MScrollDown)
self.Bind(wx.EVT_CHILD_FOCUS, self.OnChildFocus)
# self.loadingAnim = wx.animate.Animation(os.path.join(config.path,"icons/fit_loading.gif"))
# self.loadingAnim = wx.animate.Animation(os.path.join(config.pyfaPath,"icons/fit_loading.gif"))
# self.animCtrl = wx.animate.AnimationCtrl(self, -1, self.loadingAnim)
# self.animCtrl.SetUseWindowBackgroundColour()
# self.animCtrl.Hide()