Re: When to call show()?

Beast wrote:

In some programs I found that people prefer to call show() method just 
after they're creating a new widget, but some perefr to just call 
$window->show_all once in the end of window creation.
Which is better?

It depends ;)

If you have a simple GUI where all widgets are always visible, calling 
$window->show_all() is faster, simpler and less to type. But if you want
specific widgets being invisible until specific conditions become true 
at runtime, $window->show_all() would make them visible at start time, 
which is probably not want you want, resp. you need to make these 
specific widgets invisible after calling show_all().



LINUX - Linux Is Not gnU linuX

Attachment: pgpatbaU8O4ux.pgp
Description: PGP signature

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]