3 from sys
import argv
, path
4 from os
.path
import dirname
, abspath
6 app_dir
= dirname(abspath(argv
[0]))
7 path
.append(app_dir
+ '/python')
12 box
= g
.MessageDialog(None, g
.MESSAGE_QUESTION
, 0, g
.BUTTONS_OK
,
13 rox
._("ROX-Lib2 contains code that is useful to newer ROX applications. \
14 You should place this directory somewhere where other programs can \
15 find it, such as ~/lib or /usr/local/lib.\n\n\
16 ROX-Lib version: %s\n\
19 PyGTK location:\n%s" %
20 (rox
.roxlib_version
, g
.pygtk_version
, g
.gtk_version
, dirname(g
.__file
__))))
21 box
.add_button(g
.STOCK_HELP
, g
.RESPONSE_HELP
)
22 box
.set_title('ROX-Lib')
23 box
.set_position(g
.WIN_POS_CENTER
)
24 box
.set_default_response(g
.RESPONSE_OK
)
26 if box
.run() == g
.RESPONSE_HELP
:
28 os
.system("rox %s/Help &" % app_dir
)