;ò ”(òCc@sHdZdkZdklZeiiƒZdeifd„ƒYZdS(s0To create a panel applet for ROX-Filer, you should add a file called AppletRun to your application. This is run when your applet it dragged onto a panel. It works like the usual AppRun, except that it is passed the XID of the GtkSocket widget that ROX-Filer creates for you on the panel. A sample AppletRun might look like this: #!/usr/bin/env python import findrox; findrox.version(1, 9, 12) import rox import sys from rox import applet, g plug = applet.Applet(sys.argv[1]) label = g.Label('Hello\nWorld!') plug.add(label) plug.show_all() rox.mainloop() N(sgsAppletcBs)tZdZd„Zd„Zd„ZRS(sÁWhen your AppletRun file is used, create an Applet widget with the argument passed to AppletRun. Show the widget to make it appear in the panel. toplevel_* functions are called automatically.cCsUt|ƒ}tii||ƒtii|ƒ|_t i ƒ|i dt i ƒdS(s+xid is the sys.argv[1] passed to AppletRun.sdestroyN( slongsxidsgsPlugs__init__sselfsgdkswindow_foreign_newssocketsroxs toplevel_refsconnectstoplevel_unref(sselfsxid((sT/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/applet.pys__init__ s   cCs·|iiddtƒ}|o|d}n|o%|idƒ\}}t|ƒ}nt df\}}|djp |djot Sn#|djp |djotSnt Sd S( sGReturns True if the panel this applet is on is a left or right panel.s_ROX_PANEL_MENU_POSsSTRINGis,sLeftsRightsTopsBottomN( sselfssockets property_getsFalsesposssplitssidesmarginsintsNonesTrue(sselfspossmarginsside((sT/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/applet.pysis_vertical_panel(s  c CsÖtiƒ\} }}|iiddtƒ}|o|d}n|o%|i dƒ\} } t | ƒ} ntdf\} } tiiƒtiiƒf\}}|iƒ}| djo | }| d|dd8} n¤| d jo,|| |d }| d|dd8} nk| d jo| } |d 8}nJ| d jo || |d} |d 8}n| |dd8} |d8}d„}|| d|d|dƒ} ||d|d|d ƒ}| |tfSdS(s/Use this as the third argument to Menu.popup().s_ROX_PANEL_MENU_POSsSTRINGis,sTopiiisBottomisLeftisRighti cCs2||jo|Sn||jo|Sn|SdS(N(svsminsmax(svsminsmax((sT/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/applet.pyslimit]s   N(s _root_windows get_pointersxsysmodssselfssockets property_getsFalsesposssplitssidesmarginsintsNonesgsgdks screen_widths screen_heightswidthsheightsmenus size_requestsreqslimitsTrue( sselfsmenusmodssreqspossheightswidthslimitsysxsmarginsside((sT/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/applet.pys position_menu=s<  $       (s__name__s __module__s__doc__s__init__sis_vertical_panels position_menu(((sT/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/applet.pysApplets   (s__doc__sroxsgsgdksget_default_root_windows _root_windowsPlugsApplet(sroxs _root_windowsAppletsg((sT/mnt/gmirror/ports/devel/py-roxlib/work/rox-lib2-2.0.5/ROX-Lib2/python/rox/applet.pys?s