DJ Keebz wrote:
Hi, I'm new to wxPython and I'm working on my first application, which
is a simple timer that is *no where near complete* yet, and I'm
running into some issues. If you can help me with any one of the
following things, that would be wonderful.1) If you look at my source and try to run the application, you'll
notice that when you type a task in and press 'enter' there is some
overlapping going on between the checkbox element and the edit field.
How do I avoid making this happen when I want these two things to be
side by side with each other? I want it to look a lot cleaner.
You should be using sizers. They will make sure controls do not collide
with each other, and can even be made to reposition things automatically
when the owning window is resized. Sizers are a big topic, so you'll
want to do some reading. The big wxPython demo will also be of help.
2) Also, I want the application's elements/widgets (whatever the
correct term is) to move WITH the window when it is resized, if
possible (although this isn't my main concern right now).
Sizers.
3) How did you learn this library? Any recommended resources
(especially visual resources)?
This is a difficult question. There's a certain amount of learning
curve to using an event-based windowing system to begin with, regardless
of language. Built on top of that, you have the Windows abstraction
(which is decidedly in wxPython's ancestry), and then wxPython on top of
that. Basically, it depends on how you learn best. I have always
learned best by example, so I go back to the wxPython demo over and over
and over again.
ยทยทยท
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.