471,073 Members | 1,383 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

wax: ComboBox in Panels doesn't show up

Hello List,
I try to use wax (0.2.33) to build a simple interface for a utility
script.
I want to use panels for layout, but the Combobox does not show. The
supplied examples which use Panel or GridPanel show only Button
Objects.

The following snippet demonstrates the problem:
-----
from wax import *
UMGEBUNGEN = ['prod', 'test']
class MainFrame(Frame):
def Body(self):
gp = GridPanel(self, rows=3, cols=3, hgap=1, vgap=1)
gp.AddComponent(0,0,Label(self, "Umgebung :"))
gp.AddComponent(1,1,ComboBox(self, UMGEBUNGEN, readonly=1))
gp.Pack()
self.AddComponent(gp)
# self.Pack() #uncommenting does not change anything
app = Application(MainFrame)
app.MainLoop()
-----

PythonWin 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit
(Intel)] on win32.
WxPython 2.5.2.7
Am I missing something ?

Thx a lot for your time !

Norbert

Jul 18 '05 #1
1 1314
Found the error : I copied and pasted and got the first parameter in
the class creations wrong :
-----
gp.AddComponent(0,0,Label(gp, "Umgebung :"))
gp.AddComponent(1,1,ComboBox(gp, UMGEBUNGEN, readonly=1))
------
note the parameter 'gp'.

Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Porky Pig Jr | last post: by
44 posts views Thread by Mariusz Jedrzejewski | last post: by
1 post views Thread by Carlos Gomez | last post: by
2 posts views Thread by John Holmes | last post: by
7 posts views Thread by Noorain | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.