473,406 Members | 2,633 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,406 software developers and data experts.

wxPython (Flex)GridSizer Failing

Python v2.5
wxPython v2.8.3.0

I've got an app that has a wx.Panel managed by a FlexGridSizer. There
are 5 columns and 6 rows, all with StaticText widgets and all of
similar size. Everything works fine until I Clear and re-fill the
sizer a few times, then it puts all of the text in the upper-left
corner. I can clear/refill the grid to my hearts contents but it
doesn't fix itself. However, if I resize the main window the next
clear/refill will display correctly and _sometimes_ the current fill
will change and display correctly.

I have an identical panel directly below it (vertical box-sizer) with
the same number of columns but only 1 row and it never has a problem.
Both panels are identical because it's the same custom derived class
creating them and both are added to the box-sizer in an identical way.

I tried changing to an (un-flexible) GridSizer and got a different
display but the same problem. If anything, it occurs sooner.

Any ideas on what is happening?

-- Brian

Apr 27 '07 #1
1 1937
On Apr 27, 1:45 pm, "bcwh...@pobox.com" <bcwh...@pobox.comwrote:
Python v2.5
wxPython v2.8.3.0

I've got an app that has a wx.Panel managed by a FlexGridSizer. There
are 5 columns and 6 rows, all with StaticText widgets and all of
similar size. Everything works fine until I Clear and re-fill the
sizer a few times, then it puts all of the text in the upper-left
corner. I can clear/refill the grid to my hearts contents but it
doesn't fix itself. However, if I resize the main window the next
clear/refill will display correctly and _sometimes_ the current fill
will change and display correctly.

I have an identical panel directly below it (vertical box-sizer) with
the same number of columns but only 1 row and it never has a problem.
Both panels are identical because it's the same custom derived class
creating them and both are added to the box-sizer in an identical way.

I tried changing to an (un-flexible) GridSizer and got a different
display but the same problem. If anything, it occurs sooner.

Any ideas on what is happening?

-- Brian
It sounds kind of like your app isn't redrawing correctly or your not
calling the sizer's Fit() method after re-filling it. You might try
that. Also, I highly recommend posting wxPython questions to their
users group. They are usually quite helpful and knowledgeable:
http://www.wxpython.org/maillist.php

Mike

Apr 27 '07 #2

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

Similar topics

6
by: Batista, Facundo | last post by:
I'm still deciding about using Tkinter or wxPython for a project I have (sigefi, on SF). The decision is not made, I have to finish first a little program that will be done in both GUIs, and...
12
by: Simon John | last post by:
I'm writing my 2nd large wxPython program, and after the problems I found doing the first's layout in code, I'd like to look at using a 'WYSIWYG' IDE, like VisualStudio does for MFC. I've tried...
0
by: flupke | last post by:
Hi, i need to develop a gui which will load several "windows" depending on what the users selects in the menu and i thought i could accomplish this with panels. What i'm trying to do to test...
0
by: dimitri pater | last post by:
Hello, To be honest, I also posted this on the wxPython mailing list. But I thought maybe some of you on the python list can help me... I am trying to refresh a pane of a notebook that contains...
4
by: Tim Chase | last post by:
Trying to get my feet wet with wxPython (moving from just command-line apps), I tried the obvious (or, at least to me was obvious): Start python, "import wx" and then do a "help(wx)" to see...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
0
by: Robin Dunn | last post by:
Announcing ---------- The 2.6.3.0 release of wxPython is now available for download at http://wxpython.org/download.php. There have been many enhancements and fixes implemented in this...
8
by: Jia Lu | last post by:
Hi all I am using wxPy 2.6.3.2-2, But when run an application with self.Bind , I got an error that there is no Bind. How can I fix it. thanx
3
by: Gandalf | last post by:
why when I try to insert gridSizer to a panel which already inside another panel the gridSizer doesn't work? this is the code: panel3= wx.Panel(self, -1, (0, 60), size=(400, 240) ,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.