ó «‡Uc@sgdZddlZejdƒddlZdejfd„ƒYZd„ZedkrceƒndS(s†Paned Widgets The GtkHPaned and GtkVPaned Widgets divide their content area into two panes with a divider in between that the user can adjust. A separate child is placed into each pane. There are a number of options that can be set for each pane. This test contains both a horizontal(HPaned) and a vertical(VPaned) widget, and allows you to adjust the options for each side of each widget.iÿÿÿÿNs2.0tPanedWidgetsDemocBs/eZdd„Zd„Zd„Zd„ZRS(cCs÷tjj|ƒy|j|jƒƒWn$tk rM|jdd„ƒnX|j|jj ƒ|j dƒtj t dƒ}|j |ƒtjƒ}|j|ttƒ|j dƒtjƒ}|j|ƒtjƒ}|jtjƒ|jddƒ|j|ƒtjdƒ}|j |ƒtjƒ}|jtjƒ|jddƒ|j|ƒtjƒ}|jtjƒ|jddƒ|j|ƒ|j|j|dd d ƒt t dƒ|j|j|d d d ƒt t dƒ|jƒdS(NtdestroycWs tjƒS(N(tgtkt main_quit(tw((s#/usr/lib/pygtk27/2.0/demos/panes.pytsiii<s _Hi thereiPt HorizontaltLefttRighttVerticaltToptBottom(RtWindowt__init__t set_screent get_screentAttributeErrortconnectt set_titlet __class__t__name__tset_border_widthtVBoxtFalsetaddtVPanedt pack_starttTruetHPanedtadd1tFrametset_shadow_typet SHADOW_INtset_size_requesttButtontadd2t&_PanedWidgetsDemo__create_pane_optionstshow_all(tselftparenttvboxtvpanedthpanedtframetbutton((s#/usr/lib/pygtk27/2.0/demos/panes.pyR sF                cCsr|j}||jƒdkrH|j|ƒ|j||jƒdƒn&|j|ƒ|j||jƒdƒdS(Ni(R't get_childrentremovetpack1t get_activetpack2(R&ttbuttontchildtpaned((s#/usr/lib/pygtk27/2.0/demos/panes.pyton_resize_toggledCs    cCsr|j}||jƒdkrH|j|ƒ|j|d|jƒƒn&|j|ƒ|j|d|jƒƒdS(Ni(R'R-R.R/R0R1(R&R2R3R4((s#/usr/lib/pygtk27/2.0/demos/panes.pyton_shrink_toggledMs    c CsÙtj|ƒ}|jdƒtjddtƒ}|j|ƒtj|ƒ}|j|ddddƒtjdƒ}|j d|j |j ƒdƒ|j|ddddƒtjdƒ}|j tƒ|j d|j |j ƒdƒ|j|ddddƒtj|ƒ}|j|ddddƒtjdƒ}|j tƒ|j d|j |j ƒdƒ|j|ddddƒtjdƒ}|j tƒ|j d|j |j ƒdƒ|j|ddddƒ|S( Niiiiit_Resizettoggledt_Shrink(RRRtTableRRtLabeltattacht CheckButtonRR5R-t set_activeR6( R&R4t frame_labeltlabel1tlabel2R+ttabletlabelt check_button((s#/usr/lib/pygtk27/2.0/demos/panes.pyt__create_pane_optionsWs0         N(Rt __module__tNoneR R5R6R$(((s#/usr/lib/pygtk27/2.0/demos/panes.pyRs 3 cCstƒtjƒdS(N(RRtmain(((s#/usr/lib/pygtk27/2.0/demos/panes.pyRHyst__main__(t__doc__tpygtktrequireRR RRHR(((s#/usr/lib/pygtk27/2.0/demos/panes.pyt s   j