Richard Seymour
2004-02-02 16:19:11 UTC
I noticed on the latest CVS (and earlier) that the status bar was a bit
messed up. Poking around, I saw that rect=self.GetFieldRect() wasn't
returning the proper field widths for variable width fields. It seemed
to in fact be providing the -int. It would be cool if it came back with
-actualwidth, but it doesn't. So I just moved the variable width fields
all the way to the right and voila. Anyway, here is the diff to
guiwidgets.py:
Index: guiwidgets.py
===================================================================
RCS file: /cvsroot/bitpim/bitpim/guiwidgets.py,v
retrieving revision 1.123
diff -r1.123 guiwidgets.py
988c988
< self.SetStatusWidths( [200, -5, 180, -20] )
---
< rect=self.GetFieldRect(2)
< self.gauge.SetPosition(wxPoint(rect.x+2, rect.y+2))
---
1021c1021
< self.SetStatusText(str,1)
---
(sorry if this double posts, I accidentally sent from the wrong email
address at first)
messed up. Poking around, I saw that rect=self.GetFieldRect() wasn't
returning the proper field widths for variable width fields. It seemed
to in fact be providing the -int. It would be cool if it came back with
-actualwidth, but it doesn't. So I just moved the variable width fields
all the way to the right and voila. Anyway, here is the diff to
guiwidgets.py:
Index: guiwidgets.py
===================================================================
RCS file: /cvsroot/bitpim/bitpim/guiwidgets.py,v
retrieving revision 1.123
diff -r1.123 guiwidgets.py
988c988
< self.SetStatusWidths( [200, -5, 180, -20] )
---
self.SetStatusWidths( [200, 180, -1, -4] ) # 20/5 ...
1005,1006c1005,1006< rect=self.GetFieldRect(2)
< self.gauge.SetPosition(wxPoint(rect.x+2, rect.y+2))
---
rect=self.GetFieldRect(1)
self.gauge.SetPosition(wxPoint(rect.x+2, rect.y+4)) # +4
looks better?self.gauge.SetPosition(wxPoint(rect.x+2, rect.y+4)) # +4
1021c1021
< self.SetStatusText(str,1)
---
self.SetStatusText(str,2)
-Rich(sorry if this double posts, I accidentally sent from the wrong email
address at first)