Get correct version of pygtk for python version.
[rox-lib.git] / AppRun
blobe3feb278388e54e0ceb7a71de12ce89224831191
1 #!/usr/bin/env python
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')
9 from rox import g
11 box = g.MessageDialog(None, g.MESSAGE_QUESTION, 0, g.BUTTONS_OK,
12 "ROX-Lib2 contains code that is useful to newer ROX applications. \
13 You should place this directory somewhere where other programs can \
14 find it, such as ~/lib or /usr/local/lib.")
15 box.add_button(g.STOCK_HELP, g.RESPONSE_HELP)
16 box.set_title('ROX-Lib')
17 box.set_position(g.WIN_POS_CENTER)
18 box.set_default_response(g.RESPONSE_OK)
20 if box.run() == g.RESPONSE_HELP:
21 import os
22 os.system("rox %s/Help &" % app_dir)