2 import findrox
; findrox
.version(2, 0, 0)
10 __builtins__
._ = rox
.i18n
.translation(os
.path
.join(rox
.app_dir
, 'Messages'))
18 def destroy_window_cb(win
):
24 mainwin
.connect("destroy", destroy_window_cb
)
25 sob
= setofbars
.SetOfBars(length
= 100)
30 def run_in_panel(xid
):
31 applet
= rox
.applet
.Applet(xid
)
33 if applet
.is_vertical_panel():
34 orient
= g
.ORIENTATION_HORIZONTAL
36 orient
= g
.ORIENTATION_VERTICAL
37 sob
= setofbars
.SetOfBars(orient
, -1, applet
.position_menu
)
43 run_in_panel(sys
.argv
[1])