ó «‡Uc@sgdZddlZejdƒddlZdejfd„ƒYZd„ZedkrceƒndS(s¡Info Bar is a widget that can be used to show messages to the user without showing a dialog. It is often temporarily shown at the top or bottom of a document. iÿÿÿÿNs2.0t InfoBarDemocBseZdd„Zd„ZRS(cCsÀtjj|ƒy|j|jƒƒWn$tk rM|jdd„ƒnX|j|jj ƒ|j dƒtj ƒ}|j |ƒtj ƒ}|j|ttƒ|jtjƒ|jƒjtjdƒttƒtj ƒ}|j|ttƒ|jtjƒ|jƒjtjdƒttƒtj ƒ}|jtjtjƒ|jd|jƒ|j|ttƒ|jtjƒ|jƒjtjdƒttƒtj ƒ}|j|ttƒ|jtjƒ|jƒjtjdƒttƒtj ƒ}|j|ttƒ|jtjƒ|jƒjtjd ƒttƒtjd ƒ}|j|ttdƒtj d dƒ}|j dƒ|j |ƒ|jtjd ƒttƒ|jƒdS( NtdestroycWs tjƒS(N(tgtkt main_quit(tw((s%/usr/lib/pygtk27/2.0/demos/infobar.pytsis6This is an info bar with message type GTK_MESSAGE_INFOs9This is an info bar with message type GTK_MESSAGE_WARNINGtresponses:This is an info bar with message type GTK_MESSAGE_QUESTIONs7This is an info bar with message type GTK_MESSAGE_ERRORs7This is an info bar with message type GTK_MESSAGE_OTHERs Info barstspacings!An example of different info bars(RtWindowt__init__t set_screent get_screentAttributeErrortconnectt set_titlet __class__t__name__tset_border_widthtVBoxtaddtInfoBart pack_starttFalsetset_message_typet MESSAGE_INFOtget_content_areatLabeltMESSAGE_WARNINGt add_buttontSTOCK_OKt RESPONSE_OKt_on_bar_responsetMESSAGE_QUESTIONt MESSAGE_ERRORt MESSAGE_OTHERtFrametshow_all(tselftparenttvbtbartframetvb2((s%/usr/lib/pygtk27/2.0/demos/infobar.pyR s`                          cCsTtj|tjtjBtjtjdƒ}|jd|ƒ|jƒ|jƒdS(Ns#You clicked a button on an info barsYour response has id %d( Rt MessageDialogt DIALOG_MODALtDIALOG_DESTROY_WITH_PARENTRt BUTTONS_OKtformat_secondary_texttrunR(R%tbuttont response_idtdialog((s%/usr/lib/pygtk27/2.0/demos/infobar.pyRHs   N(Rt __module__tNoneR R(((s%/usr/lib/pygtk27/2.0/demos/infobar.pyR s :cCstƒtjƒdS(N(RRtmain(((s%/usr/lib/pygtk27/2.0/demos/infobar.pyR6Tst__main__(t__doc__tpygtktrequireRRRR6R(((s%/usr/lib/pygtk27/2.0/demos/infobar.pyts   G