Changeset 75 for pykoticon/trunk/bin
- Timestamp:
- 01/19/05 08:09:56 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykoticon/trunk/bin/pykoticon
r72 r75 34 34 try : 35 35 import win32api 36 import win32net37 import win32netcon38 36 except ImportError : 39 37 raise ImportError, "Mark Hammond's Win32 Extensions are missing. Please install them." … … 49 47 except ImportError : 50 48 hasWxPython = 0 51 raise ImportError, "wxPython for Windowsis missing. Please install it."49 raise ImportError, "wxPython is missing. Please install it." 52 50 53 51 DUMPYKOTA_URL = "http://cgi.librelogiciel.com/cgi-bin/dumpykota.cgi" … … 204 202 def __init__(self, parent, user) : 205 203 gridlib.Grid.__init__(self, parent, -1) 204 nbrows = len(user.Quotas.keys()) 205 nbcols = 4 206 206 if user.LimitBy == "balance" : 207 nbcols = 3 208 else : 209 nbcols = 4 210 self.CreateGrid(len(user.Quotas.keys()), nbcols) 207 nbrows += 1 208 nbcols -= 1 209 self.CreateGrid(nbrows, nbcols) 211 210 self.EnableEditing(False) 212 211 if user.LimitBy == "balance" : … … 236 235 self.SetCellValue(i, 2, str(printer.PricePerJob)) 237 236 i += 1 237 self.SetRowLabelValue(i, "") 238 self.SetCellValue(i, 0, _("CREDITS :") + (" %.2f" % user.Balance)) 239 self.SetCellAlignment(i, 0, wx.ALIGN_CENTRE, wx.ALIGN_CENTRE) 238 240 else : 239 241 self.SetColLabelValue(0, _("Page Counter"))