wxGrid?
Cousin Stanley
CousinStanley at hotmail.com
Wed Sep 3 10:51:57 EDT 2003
Tom ...
I was able to run your script
by adding two lines ...
from wxPython.grid import *
and
grid.CreateGrid( 3 , 2 )
Cousin Stanley
-----------------------------------------------------------
'''
NewsGroup .... comp.lang.python
Date ......... 2003-09-03
Posted_By .... Tom Lee
Edited_By .... Stanley C. Kitching
'''
from wxPython.wx import *
from wxPython.grid import *
class TestFrame( wxFrame ) :
def __init__( self ) :
wxFrame.__init__( self , None, -1 , 'TestGrid' ,
size = ( 430 , 185 ) )
grid = wxGrid( self, -1 )
grid.CreateGrid( 3 , 2 )
grid.AppendCols( 2 )
grid.AppendRows( 3 )
grid.SetCellValue( 0 , 0 , 'Testing' )
self.Show( True )
class TestApp( wxApp ) :
def OnInit( self ) :
frame = TestFrame()
self.SetTopWindow( frame )
return True
if __name__ == '__main__' :
app = TestApp( 0 )
app.MainLoop()
More information about the Python-list
mailing list