From: Mario Castro <mariocastro....@gmail.com>
Date: Tue, 9 Oct 2012 13:27:19 -0700 (PDT)
Local: Tues, Oct 9 2012 4:27 pm
Subject: Re: ANN: XLSGrid For wxPython
Hello, sorry for the delay but lately I've had trouble connecting to the The point is that I am generating (using xlwt) an Excel document, from the Queries to the database, return, in some fields a None value (for example, I assume that indeed is a bug in xlwt (which I have not checked), which did The Excel File is in And thank you very much for the suggestions and corrections regarding the > Hi All, > it's been a while since my last "announcement"... Anyway, I am happy > Source code: > http://xoomer.virgilio.it/infinity77/Zipped/XLSGrid.zip > Screenshots: > (XLSGrid standalone) > (XLSGrid against Excel, same file) > @Robin and other wxGrid gurus (which group I am not part of, > @Warning: XLSGrid **requires** the xlrd package from: > http://pypi.python.org/pypi/xlrd > @Warning: XLSGrid has been tested on Windows Vista/Windows 7 with wxPython > So, what is XLSGrid? > XLSGrid is a class based on `wx.grid.Grid` that can be used to faithfully > XLSGrid is a completely owner-drawn control, and it relies on the power of > *NOTE*: On Windows, it is **strongly** recommended to install Mark > http://sourceforge.net/projects/pywin32/ > This will allow you to perfectly reproduce the appearance of the Excel > *WARNING*: If Mark Hammonds' `pywin32` package is not available, the > *WARNING*: XLSGrid can only read Excel `.xls` files, not the newer > Currently this class provides a read-only subclass of `wx.grid.Grid`, with > * Cell background: support for any cell background colour and fill pattern > * Cell borders: support for all the border types and colours exposed by > * Cell text: support for all kind of fonts (except strike-through, but this > - Horizontal alignment: left, right, centered, left-indented; > * Cell text appearance: if you are using Mark Hammonds' `pywin32` package, > * Cell comments (notes): if you are using Mark Hammonds' `pywin32` package, > * Cell hyperlinks: starting from version 0.7.2 (SVN), `xlrd` is capable of > * Cell merging: merged cells in the Excel spreadsheet will be correctly > * Columns and rows sizes: XLSGrid calculates the correct rows and columns > Questions: > 1) I have this piece of code in the XLSGrid implementation (which is > # Commented-out section > attr = gridlib.GridCellAttr() > attr.SetRenderer(XLSRenderer(self)) > attr.SetSize(*self.size) > return self.attr > I though I could store a wx.grid.GridCellAttr inside a class member, but > Traceback (most recent call last): > Or this one, in wxPython 2.9.2.1: > Traceback (most recent call last): > Isn't self.attr an instance of GridCellAttr?!?? I explicitly create it in > 2) `wx.grid.Grid` seems to completely redraw itself at every resize event, > Enjoy, wxPython rules :-) > Andrea. > "Imagination Is The Only Weapon In The War Against Reality." You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||