[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyKDE] autoAdding buttons to a grid
From:       Richard Smith <smithbone () gmail ! com>
Date:       2005-05-19 6:05:32
Message-ID: 8a0c3678050518230559f30688 () mail ! gmail ! com
[Download RAW message or body]

> Okay so create a button-group for each of the sets of buttons you need.
> Hide them all by calling their hide() methods. As each set of buttons
> is needed, call its show() method (after re-positioning it if necessary
> by calling its move() method). There should be no need to keep creating
> and destroying widgets to achieve what you want.

Ahhh.. Ok I see.  Yeah thats a much better way.  I just had my head
around it wrong.
I don't know that I'm going to be able to fully determine _all_ the
various permutations possible and have that number of groupboxes handy
but I should be able to figure out most of them.  I still think I'll
have to re-create one or two since you can't shrink a grid once
created but we will see.
 
> provides the three methods mentioned above). Its quite important to
> familiarize yourself with Qt's documentation for this class:

Over the past few nights I've spent a _lot_ of time buried in the Qt
docs and googleing for things.  I did read and look at most of those
tutorials.  The problem was that I was looking for the wrong stuff and
examples of trying to do the wrong things.

I just needed knowledgeable person like yourself to enlighten me with
a slight smack up side the head and show me the Qt way. *grin*  Thats
one of the reasons I continued to post my findings on this thread as
it seemed like what I was trying to do was just way too hard. 
Hopefully the archives will help the next soul who trys to head down
my same path.

> more geared towards the sorts of questions you are asking. You can find
> it here:
> 
> http://www.qtforum.org

Thanks. I'll check it out. When I started this thread I was thinking
that I just wasn't doing somthing right in pyQt but now I see it was
totally a Qt thing.

-- 
Richard A. Smith

_______________________________________________
PyKDE mailing list    PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic