The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled Python Code
Posted by: temp | April 24, 2010 @ 4:33pm
Python Code
[
Download
]
import wx import wx.grid as gridlib class SimpleGrid(gridlib.Grid): def __init__(self, parent): gridlib.Grid.__init__(self, parent, -1) self.moveTo = None self.CreateGrid(25, 25) self.SetDefaultColSize(32) self.SetDefaultRowSize(32) self.SetColLabelSize(0) self.SetRowLabelSize(0) self.SetColLabelAlignment(wx.ALIGN_LEFT, wx.ALIGN_BOTTOM) class bottomPanel(gridlib.Grid): def __init__(self, parent, id): gridlib.Grid.__init__(self, parent, id, style=wx.BORDER_SUNKEN) Button = wx.Button(self, -1, "BOTTOM", (60, 60)) class mainFrame(wx.Frame): def __init__(self, parent, id, title): wx.Frame.__init__(self, parent, id, title, size=(768, 576)) panel = wx.Panel(self, -1) tp = SimpleGrid(self) bp = bottomPanel(panel, -1) vbox = wx.BoxSizer(wx.VERTICAL) vbox.Add(tp, 1, wx.EXPAND | wx.ALL, 5) vbox.Add(bp, 0, wx.EXPAND | wx.ALL, 1) panel.SetSizer(vbox) self.Centre() self.Show(True) app = wx.App() mainFrame(None, -1, "SLAE") app.MainLoop()
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.42 / 8
57 Votes
http://codebin.yi.org/608
page generated in 0.01 seconds