projects
/
wxWidgets.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
0.1.8-3
[wxWidgets.git]
/
wxPython
/
samples
/
wxPIA_book
/
Chapter-14
/
grid_basic.py
1
import
wx
2
import
wx
.
grid
3
4
class
TestFrame
(
wx
.
Frame
):
5
def
__init__
(
self
):
6
wx
.
Frame
.__
init
__
(
self
,
None
,
title
=
"Simple Grid"
,
7
size
=(
640
,
480
))
8
grid
=
wx
.
grid
.
Grid
(
self
)
9
grid
.
CreateGrid
(
50
,
50
)
10
for
row
in
range
(
20
):
11
for
col
in
range
(
6
):
12
grid
.
SetCellValue
(
row
,
col
,
13
"cell (
%d
,
%d
)"
% (
row
,
col
))
14
15
app
=
wx
.
PySimpleApp
()
16
frame
=
TestFrame
()
17
frame
.
Show
()
18
app
.
MainLoop
()