Well, one of the cats is out of the bag and some of the news that I've been wanting to tell you folks since March is common knowledge now. (There is still yet more news coming in a week or two...)
The news is that Borland is using wxWindows as their new GUI framework of choice for their new C++BuilderX IDE tool due out in a few months. This is in response to their users' wishes to dump VCL (c++ wrappers around a Delphi object library) and get a pure C++ solution. So instead of reinventing the wheel yet again Borland has selected wxWindows to fill that spot on the feature list. They have been funding some work (and will continue to do so) to add some features and polish to the library and also revamped some things to aid with integration with their Form Builders and such.
The IODE itself is ulta-cool too (even if it is written in Jave and requires a hundred Meg or so to run.) It can use any popular C++ compiler and debugger toolset, not just Borland's and has lots of tools built-in. We just need to convince them that Python editing. debugging and code generation from their form builders is an important thing!
Hi
Thanks for all your help so far it is great to feel so supported.
I am having trouble with the grid.
I pasted the following code from the grid docs to get the current
selection.
def _OnSelectedRange( self, event ):
"""Internal update to the selection tracking list"""
if event.Selecting():
# adding to the list...
for index in range( event.GetTopRow(),
event.GetBottomRow()+1):
if index not in self.currentSelection:
self.currentSelection.append( index
)
else:
# removal from list
for index in range( event.GetTopRow(),
event.GetBottomRow()+1):
while index in self.currentSelection:
self.currentSelection.remove( index
)
self.ConfigureForSelection()
event.Skip()
def _OnSelectedCell( self, event ):
"""Internal update to the selection tracking list"""
self.currentSelection = [ event.GetRow() ]
self.ConfigureForSelection()
event.Skip()
I get 2 errors
Global name 'currentSelection' is not defined. (How do I define it?)
And if I cut out the refs to currentSelection,
slef.ConfigureForSelection throw an error
Please can anyone tell me what I am doing wrong?
ALSO
How do I loop through the cells checking backcolor and value.
This is driving me nuts, the answer is probably simple and my newness to
wxPython is the problem but any help would be appreciated.
Global name 'currentSelection' is not defined. (How do I define it?)
You can declaer: "self.currentSelection = " in the __init__ function or as
a data member before the __init__declaration.
For the second question:
How do I loop through the cells checking backcolor and value.
You can do a nested for loop like this:
for col in range(self.GetNumberCols()):
for row in range(self.GetNumberRows()):
self.GetCellBackgroundColour(int row, int col)
self.GetCellValue(int row, int col)
Well, one of the cats is out of the bag and some of the news that I've
been wanting to tell you folks since March is common knowledge now.
(There is still yet more news coming in a week or two...)
So that's why you and Vadim have been building up yout frequent flier points lately
The IODE itself is ulta-cool too (even if it is written in Jave and
requires a hundred Meg or so to run.) It can use any popular C++
100MB!!!
That's what they get for not doing it in Python I guess
compiler and debugger toolset, not just Borland's and has lots of tools
built-in. We just need to convince them that Python editing. debugging
and code generation from their form builders is an important thing!