|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/lib64/pygtk/2.0/demos/ |
Upload File : |
mò
e‡8Hc @ s d Z d k Z d k Z e d ƒ \ Z Z Z e d ƒ \ Z Z Z d Z
d „ Z d e i f d „ ƒ YZ
d „ Z e d j o e ƒ n d S( se Application main window
Demonstrates a typical application window, with menubar, toolbar, statusbar.Ni sl <ui>
<menubar name='MenuBar'>
<menu action='FileMenu'>
<menuitem action='New'/>
<menuitem action='Open'/>
<menuitem action='Save'/>
<menuitem action='SaveAs'/>
<separator/>
<menuitem action='Quit'/>
</menu>
<menu action='PreferencesMenu'>
<menu action='ColorMenu'>
<menuitem action='Red'/>
<menuitem action='Green'/>
<menuitem action='Blue'/>
</menu>
<menu action='ShapeMenu'>
<menuitem action='Square'/>
<menuitem action='Rectangle'/>
<menuitem action='Oval'/>
</menu>
<menuitem action='Bold'/>
</menu>
<menu action='HelpMenu'>
<menuitem action='About'/>
</menu>
</menubar>
<toolbar name='ToolBar'>
<toolitem action='Open'/>
<toolitem action='Quit'/>
<separator/>
<toolitem action='Logo'/>
</toolbar>
</ui>c C sî d
g } t i | ƒ t i ƒ } | i ƒ d k } | i i | i i t
ƒ d ƒ } | i i | d ƒ } y_ t i
i | ƒ } | i t t d ƒ t d ƒ t d ƒ ƒ } t i | ƒ } | i d | ƒ Wn t i j
o } d GHn Xd S( sV This function registers our custom toolbar icons, so they
can be themed.
s
demo-gtk-logos _GTK!i t Nt imagess gtk-logo-rgb.gifiÿ s# failed to load GTK logo for toolbar( s
demo-gtk-logos _GTK!i i R ( t itemst gtkt stock_addt IconFactoryt factoryt add_defaultt ost patht joint dirnamet __file__t img_dirt img_patht gdkt pixbuf_new_from_filet pixbuft add_alphat Truet chrt transparentt IconSett icon_sett addt gobjectt GErrort error( R R R
R R R R R R ( ( t' /usr/lib64/pygtk/2.0/demos/appwindow.pyt register_stock_icons>