Re: Using a gtknotebook in a main window to display a child window
- From: Kevin Ryde <user42 zip com au>
- To: gtk-perl-list gnome org
- Cc: francois rappaz unifr ch
- Subject: Re: Using a gtknotebook in a main window to display a child window
- Date: Sat, 02 Apr 2011 10:06:12 +1100
François Rappaz <francois rappaz unifr ch> writes:
Is it possible to include the child window on the fly ?
Probably not easily. A given widget can only appear in one place at the
one time, though you can reparent to shift it about.
Is this possible without having to copy all the fields and code from the
child window in the page ?
If you made the child display stuff into a widget then you could create
two of them and re-use the code. I've tinkered with broadcasting
notifications of database updates to let display widgets update
themselves, but an explicit update/refresh/etc from whatever master
"on_change" might be enough to start.
As a bit of gratuitous self promotion, I made a
Glib::Ex::ConnectProperties (on cpan) for keeping given properties of
two widgets in sync -- any change on one is propagated to the other. If
your child stuff has control checkboxes or whatever then that might be
one way to keep them showing the same thing.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]