X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/299647acac7960652aadb008775429c1f8ea9b8d..628eae0bcd7916c57847b7eab739d4cc32534ccf:/wxPython/demo/Grid.py?ds=sidebyside diff --git a/wxPython/demo/Grid.py b/wxPython/demo/Grid.py index 78eae6b678..d2c1af22e9 100644 --- a/wxPython/demo/Grid.py +++ b/wxPython/demo/Grid.py @@ -1,20 +1,16 @@ -# 11/18/2003 - Jeff Grimmett (grimmtooth@softhome.net) -# -# o Updated for wx namespace -# import wx #--------------------------------------------------------------------------- buttonDefs = { - 814 : ('GridSimple', ' Simple wxGrid, catching all events '), - 815 : ('GridStdEdRend', ' wxGrid showing Editors and Renderers '), - 818 : ('GridHugeTable', ' A wxGrid with a HUGE table (100 MILLION cells!) '), - 817 : ('GridCustTable', ' wxGrid using a custom Table, with non-string data '), + 814 : ('GridSimple', ' Simple wx.Grid, catching all events '), + 815 : ('GridStdEdRend', ' wx.Grid showing Editors and Renderers '), + 818 : ('GridHugeTable', ' A wx.Grid with a HUGE table (100 MILLION cells!) '), + 817 : ('GridCustTable', ' wx.Grid using a custom Table, with non-string data '), 819 : ('GridEnterHandler',' Remapping keys to behave differently '), 820 : ('GridCustEditor', ' Shows how to create a custom Cell Editor '), - 821 : ('GridDragable', ' A wxGrid with dragable rows and columns '), + 821 : ('GridDragable', ' A wx.Grid with dragable rows and columns '), 822 : ('GridDragAndDrop', ' Shows how to make a grid a drop target for files'), } @@ -58,12 +54,12 @@ def runTest(frame, nb, log): overview = """\ -

wxGrid

+

wx.Grid

This demo shows various ways of using the new and -improved wxGrid class. Unfortunatly it has not been +improved wx.Grid class. Unfortunatly it has not been documented yet, and while it is somewhat backwards compatible, if you -try to go by the current wxGrid documentation you will probably just +try to go by the current wx.Grid documentation you will probably just confuse yourself.

You can look at the sources for these samples to learn a lot about how @@ -100,5 +96,5 @@ and wrapping around to the next row when needed. if __name__ == '__main__': import sys,os import run - run.main(['', os.path.basename(sys.argv[0])]) + run.main(['', os.path.basename(sys.argv[0])] + sys.argv[1:])