473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

boxsizer inside a panel

the following code's panel elements doesn't react like a table though
is haze boxsizer
What is wrong here? :
panel3=wx.Panel(self,-1,(10,10), style=wx.SIMPLE_BORDER,
size=(370, 150))
panel3.SetBackgroundColour("#ffffff")
text1=wx.StaticText(panel3, -1, 'Hello')
text2=wx.StaticText(panel3, -1, 'text text text
text')
box = wx.BoxSizer(wx.HORIZONTAL)

box.Add(text1, 1, wx.ALIGN_LEFT)
box.Add(text2, 1, wx.ALIGN_RIGHT)

self.SetAutoLayout(True)
panel3.SetSizer(box)
self.Layout()
thanks!
Aug 30 '08 #1
0 783

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Laszlo Zsolt Nagy | last post by:
Hi All, Here is the code of a frame: import wx class PanelDatabaseDefinition(wx.Panel): def __init__(self,parent): wx.Panel.__init__(self,parent) self.sizer = wx.BoxSizer(wx.VERTICAL)...
3
by: Fre | last post by:
Hi, Someone who can give me a tip how i can use a panel inside a datagrid? Thx in advance! Frederik
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
4
by: =?Utf-8?B?Rmx5Z3V5?= | last post by:
How can I update the html inside of a panel? How can I make this code work <%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
1
by: MrQ | last post by:
I have some problems putting widgets ina BoxSizer. I experiment a lot but it doesn't seems to do what i like, i must be missing something. What i'm trying to do is to add button1 to a boxsizer for...
1
by: gsauns | last post by:
I have a DetailsView inside a ModalPopup (using the AJAX ModalPopupExtender). I would like the user to have the ability to change the DetailsView's mode within the ModalPopup. But whenever I...
1
by: semomaniz | last post by:
I have a panel set up in a webpage and inside that panel i have various labels and textboxes setup. I am trying to assign a value to the label when the page loads. panel is named cpanel and a...
2
by: Gandalf | last post by:
I'm creating a table with gridSizer, and I'm trying to set cell background like I use to do with HTML so I tried this: BoxName =wx.BoxSizer(wx.HORIZONTAL)...
3
by: Jamie McQuay | last post by:
Simple question, i just can't make it work. I need to center a StaticText component in its parent (Panel). I want to do this with BoxSizer(s). if i use: box = wx.BoxSizer(wx.VERTICAL) #or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.