1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/cad/ziarc/files/patch-rnetgui.py
Ying-Chieh Liao 9a27501579 add ziarc 20020729
ZiaRC is a Resistor Calculator
2003-02-09 17:11:07 +00:00

21 lines
680 B
Python

--- rnetgui.py.orig Mon Feb 10 01:00:29 2003
+++ rnetgui.py Mon Feb 10 01:03:25 2003
@@ -765,7 +765,7 @@
for fnam, tg, tool, help, id, sep in ziplist:
- path=os.path.join(homepath,"icons",fnam)+".png"
+ path=os.path.join("%%DATADIR%%","icons",fnam)+".png"
bitmap=wxBitmapFromImage(wxImage(path, wxBITMAP_TYPE_PNG))
self.tb.AddTool(id,bitmap,wxNullBitmap, tg, -1, tool, help)
@@ -958,7 +958,7 @@
def About(self, event) :
- path=os.path.join(homepath,"icons","ziarc.png")
+ path=os.path.join("%%DATADIR%%","icons","ziarc.png")
bitmap=wxBitmapFromImage(wxImage(path, wxBITMAP_TYPE_PNG))
about=MyAbout(self, bitmap)