Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 125 results for
gridsizer
- Page 1
Problem with wxPython and GridSizer
Programming
Software Development
5 Years Ago
by Reverend Jim
….BORDER_DOUBLE) self.SetBackgroundColour('white') gsizer = wx.
GridSizer
(cols=3, vgap=5, hgap=5) for…BORDER_DOUBLE) self.SetBackgroundColour('yellow') gsizer = wx.
GridSizer
(cols=3, vgap=5, hgap=5)…
Re: Problem with wxPython and GridSizer
Programming
Software Development
5 Years Ago
by Reverend Jim
… -1, style=wx.BORDER_DOUBLE) self.SetBackgroundColour('light grey') gsizer = wx.
GridSizer
(cols=3, vgap=5, hgap=5) for row in (0… parent, -1, style=wx.BORDER_DOUBLE) self.SetBackgroundColour('yellow') gsizer = wx.
GridSizer
(cols=3, vgap=5, hgap=5) for row in (0…
wxpython - removing all items from GridSizer
Programming
Software Development
14 Years Ago
by inamabilis
…'m working on, trying to remove all items from a
GridSizer
- I've created the following test code to demonstrate the….Panel(frame) vboxsizer = wx.BoxSizer(wx.VERTICAL) self.grid = wx.
GridSizer
(rows=0, cols=3) b0 = wx.Button(panel, label="…
Re: wxpython - removing all items from GridSizer
Programming
Software Development
14 Years Ago
by woooee
….Panel(frame) vboxsizer = wx.BoxSizer(wx.VERTICAL) self.grid = wx.
GridSizer
(rows=0, cols=3) self.button_dict = {} for j in range…
Re: wxpython - removing all items from GridSizer
Programming
Software Development
14 Years Ago
by inamabilis
….Panel(frame) vboxsizer = wx.BoxSizer(wx.VERTICAL) self.grid = wx.
GridSizer
(rows=0, cols=3) self.b0 = wx.Button(panel, label…
Re: wxpython - removing all items from GridSizer
Programming
Software Development
14 Years Ago
by inamabilis
Figured it out - for anyone else having the same problem you need Destroy() to remove children from a
GridSizer
, not Hide or Remove :icon_rolleyes:
Re: wxpython - removing all items from GridSizer
Programming
Software Development
14 Years Ago
by inamabilis
Forgive me if I'm mistaken but doesn't the above code 'Hide' buttons rather than removing them? The problem being that they're still in the grid taking up a space..
Re: wxpython - removing all items from GridSizer
Programming
Software Development
14 Years Ago
by woooee
I would suggest you first try substituting Destroy for Hide, and then check the docs for methods associated with widgets so you can think for yourself and make associations in the future. And mark the thread "Solved".
wxPython-- How do I delete buttons?
Programming
Software Development
14 Years Ago
by dare599z
…statusInfo.Add(self.numberText, proportion = 0, border = 0) self.
gridSizer
= wx.BoxSizer() self.vertBox = wx.BoxSizer(wx.VERTICAL) self.vertBox….board = [] self.coins_left = 0 self.getInfo() try: self.
gridSizer
.Remove(self.grid) except: print "not here" try…
How to Write a Sudoku GUI in Python/wxPython
Programming
Software Development
5 Years Ago
by Reverend Jim
… of buttons with an OnClick handler. gsizer = wx.
GridSizer
(cols=3, vgap=0, hgap=0) for i …# Make a 3x3 grid of tiles gsizer = wx.
GridSizer
(cols=3, vgap=5, hgap=5) for i in…# Make a 3x3 grid of tiles gsizer = wx.
GridSizer
(cols=3, vgap=5, hgap=5) for i in…
Re: wxPython-- How do I delete buttons?
Programming
Software Development
14 Years Ago
by woooee
…QUOTE] [quote]I try to remove the wx.
GridSizer
and replace it with another one.[/quote]The [url… Detach, Remove, and RemoveSizer for a Sizer widger (
GridSizer
is a subclass of Sizer). So it would be …) self.frame = frame self.panel = panel self.grid = wx.
GridSizer
(rows=0, cols=3) self.button_dict = {} x = 10 y…
Re: wxPython-- How do I delete buttons?
Programming
Software Development
14 Years Ago
by dare599z
…[/url] list Detach, Remove, and RemoveSizer for a Sizer widger (
GridSizer
is a subclass of Sizer). So it would be something….VERTICAL) self.frame = frame self.panel = panel self.grid = wx.
GridSizer
(rows=0, cols=3) self.button_dict = {} x = 10 y = 20…
Re: wxPython-- How do I delete buttons?
Programming
Software Development
14 Years Ago
by dare599z
…(self.displayText, proportion = 1, flag = wx.EXPAND, border = 0) self.
gridSizer
= wx.BoxSizer() self.vertBox = wx.BoxSizer(wx.VERTICAL) self.vertBox… = 0, flag = wx.ALIGN_CENTER, border = 0) self.vertBox.Add(self.
gridSizer
, proportion = 1, flag = wx.EXPAND, border = 0) self.vertBox.Add…
Why doesnt my calculator script work! <----newb alert
Programming
Software Development
16 Years Ago
by ccube921
…ICODE] #!/usr/bin/python #
gridsizer
.py import wx app = wx.App() class
GridSizer
(wx.Frame): def __init__(self…EXPAND | wx.TOP | wx.BOTTOM, 4) gs = wx.
GridSizer
(4, 4, 3, 3) gs.AddMany([ (wx.Button(self… = wx.App()
GridSizer
(None, -1, '
GridSizer
') app.MainLoop() [/ICODE] Basically I made a
gridsizer
for the buttons, then…
Re: Why doesnt my calculator script work! <----newb alert
Programming
Software Development
16 Years Ago
by lllllIllIlllI
… [code=python] #!/usr/bin/python #
gridsizer
.py import wx class
GridSizer
(wx.Frame): def __init__(self, parent, id… | wx.TOP | wx.BOTTOM, 4) gs = wx.
GridSizer
(4, 4, 3, 3) self.e_but = wx.Button(self…print x + y app = wx.App(False)
GridSizer
(None, -1, '
GridSizer
') app.MainLoop() [/code] Note that your program…
Re: How to Write a Sudoku GUI in Python/wxPython
Programming
Software Development
4 Years Ago
by Reverend Jim
…'t work. I updated the original layout by placing the
gridsizer
within an inner panel. This achieves the layout I wanted…
Display a png, play a sound on button press in wxpython.....
Programming
Software Development
16 Years Ago
by aegis042404
… button. [code] #!/usr/bin/python #
gridsizer
.py import wx class
GridSizer
(wx.Frame): def __init__(self, parent, id…('/full/path/to/png/G.png')) gs = wx.
GridSizer
(3, 4, 15, 15) gs.Add(c1) gs… OnClose(self, event): self.Close() app = wx.App()
GridSizer
(None, -1, 'Mzz Bunns') app.MainLoop() [/code] I…
wxPython clear panel
Programming
Software Development
15 Years Ago
by Robbert
… Two', (150, 0), (150, 30)))]) gs = wx.
GridSizer
(2, 1, 3, 3) gs.AddMany(myList) countArray =….EVT_BUTTON, self.OnOneB, id=21) gs = wx.
GridSizer
(1, 2, 3, 3) gs.AddMany(myList) ….EVT_BUTTON, self.OnTwoB, id=31) gs = wx.
GridSizer
(1, 2, 3, 3) gs.AddMany(myList) …
wxpython - Nested Notebooks - Economizing Code
Programming
Software Development
13 Years Ago
by madtowneast
… chbox.append(cb) chboxdict[item]=cb
gridSizer
= wx.
GridSizer
(np.shape(list(set(labels)))[0],3,… 5, 5)
gridSizer
.AddMany(chbox) self.SetSizer(
gridSizer
) ######################################################################## class NestedNotebookDemo(wx.Notebook): …
wx.Checkbox - Associate Data with a Checkbox
Programming
Software Development
13 Years Ago
by madtowneast
…) self.chbox.append(self.cb) self.labels.append(ssslabel)
gridSizer
= wx.
GridSizer
(np.shape(list(set(self.labels)))[0],3, 5, 5…)
gridSizer
.AddMany(self.chbox) self.SetSizer(
gridSizer
) def OnTimer(self, event): #print "OnTimer…
self is not defined help
Programming
Software Development
17 Years Ago
by vagab0nd
…): sizer = wx.BoxSizer(wx.VERTICAL) grid_sizer = wx.
GridSizer
(1, 2, 0, 0) grid_sizerR = wx.
GridSizer
(2, 1, 0, 0) grid_sizer.Add(self…
HIDE/SHOW - Instantiating class
Programming
Software Development
16 Years Ago
by Stefano Mtangoo
….CENTER) vbox.Add((0,15)) #Add to
gridsizer
(row, col, vgap, hgap) gsizer = wx.
GridSizer
(4, 3, 4, 4) gsizer.AddMany([(self…
Re: HIDE/SHOW - Instantiating class
Programming
Software Development
16 Years Ago
by Gribouillis
…(MainPanel, -1) #----------------------------------------- """ #Add to
gridsizer
(row, col, vgap, hgap) gsizer = wx.
GridSizer
(self.nrows, self.ncols, 4, 4) items…
wxpython SetBitmapSelected syntax confusion...
Programming
Software Development
16 Years Ago
by aegis042404
… examples either. Then I populate a grid with wx.
GridSizer
. [code] gs = wx.
GridSizer
(3, 4, 15, 15) gs.Add(c1) gs…
Learning game in wxpython
Programming
Software Development
15 Years Ago
by aegis042404
… how to rewrite it to take advantage of something like
gridsizer
. I tried to adapt my code defining the buttons to… use
gridsizer
but it wouldn't work. 3. I'd like to…
Help to create Color palette in wxpython
Programming
Software Development
15 Years Ago
by MSV22
…(parent) self.layout(colorGrid) def createColorGrid(self,parent): colorGrid =wx.
GridSizer
(cols=2,hgap=2,vgap=2) for each in colordata…
GetValue from specific widget
Programming
Software Development
14 Years Ago
by Archenemie
…;, "0", ".", "BackSpace" ] gsizer = wx.
GridSizer
(4, 3, 0, 0) self.btn = range(len(self.btn_list…
Re: GetValue from specific widget
Programming
Software Development
14 Years Ago
by Archenemie
…;, "0", ".", "BackSpace" ] gsizer = wx.
GridSizer
(4, 3, 0, 0) self.btn = range(len(self.btn_list…
Re: GetValue from specific widget
Programming
Software Development
14 Years Ago
by snippsat
…;, "0", ".", "BackSpace" ] gsizer = wx.
GridSizer
(4, 3, 0, 0) self.btn = range(len(self.btn_list…
Python GUI DON'T TOUCH!(WHAT??)
Programming
Software Development
14 Years Ago
by HoneyBadger
… wxGlade def __do_layout(self): # begin wxGlade: MyFrame5.__do_layout grid_sizer_1 = wx.
GridSizer
(10, 2, 0, 0) grid_sizer_1.Add(self.label_2, 0, wx…
1
2
3
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC