16 |
# write to the Free Software Foundation, Inc., 59 Temple Place |
# write to the Free Software Foundation, Inc., 59 Temple Place |
17 |
# - Suite 330, Boston, MA 02111-1307, USA. |
# - Suite 330, Boston, MA 02111-1307, USA. |
18 |
# |
# |
19 |
# Copyright 2002 Free Software Foundation |
# Copyright 2002-2003 Free Software Foundation |
20 |
# |
# |
21 |
# FILE: |
# FILE: |
22 |
# Label.py |
# Label.py |
128 |
X = self.FIELD_X[index] + self._ABSX - self.X |
X = self.FIELD_X[index] + self._ABSX - self.X |
129 |
caption = string.ljust(caption[:size], size) |
caption = string.ljust(caption[:size], size) |
130 |
|
|
|
GDebug.printMesg(1,'Visible, so adding %s' % caption) |
|
131 |
Container = self.PARENT.Screen() |
Container = self.PARENT.Screen() |
132 |
#Container.SetColor(sio.C_STATUSBAR_FIELD) |
y,x = Container.GetYX() |
133 |
Container.PrintAt(self._ABSY,X,caption)#, curses.color_pair(sio.C_STATUSBAR_FIELD)) |
self.HiLight |
134 |
|
Container.PrintAt(self._ABSY,X,caption, Container.colors.C_STATUSBAR_FIELD) |
135 |
|
|
136 |
|
Container.GotoYX(y,x) |
137 |
|
|
138 |
|
|
139 |
|
|
140 |
|
|
141 |
|
|
144 |
Container = self.PARENT.Screen() |
Container = self.PARENT.Screen() |
145 |
if Container == None: |
if Container == None: |
146 |
raise "No container--can't paint!" |
raise "No container--can't paint!" |
147 |
self.LoLight() |
# self.LoLight() |
148 |
Y = self._ABSY |
Y = self._ABSY |
149 |
|
|
150 |
Container.PrintAt(Y,self._ABSX,self._EmptyStatusBar)#, |
Container.PrintAt(Y,self._ABSX,self._EmptyStatusBar, Container.colors.C_STATUSBAR) |
|
#curses.color_pair(sio.C_STATUSBAR)) |
|
151 |
|
|
152 |
for index in range(self.NUM_FIELDS): |
for index in range(self.NUM_FIELDS): |
153 |
|
|
155 |
X = self.FIELD_X[index] + self._ABSX - self.X |
X = self.FIELD_X[index] + self._ABSX - self.X |
156 |
caption = string.ljust(self.TEXT[index][:size], size) |
caption = string.ljust(self.TEXT[index][:size], size) |
157 |
|
|
158 |
# Container.SetColor(sio.C_STATUSBAR_FIELD) |
Container.PrintAt(Y,X,caption, Container.colors.C_STATUSBAR_FIELD) |
|
Container.PrintAt(Y,X,caption)#, |
|
|
# curses.color_pair(sio.C_STATUSBAR_FIELD)) |
|
159 |
|
|
160 |
self._visible = 1 |
self._visible = 1 |
161 |
|
|