Add config path to test2.py display

This commit is contained in:
Worros 2010-02-05 21:29:07 +08:00
parent e0a125faf0
commit ac458386da

View File

@ -23,6 +23,9 @@ Test if gtk is working.
import sys import sys
import os import os
import Configuration
config_path = Configuration.get_default_config_path()
try: try:
import gobject as _gobject import gobject as _gobject
@ -66,7 +69,7 @@ try:
(gtk.STOCK_CLOSE, gtk.RESPONSE_OK)) (gtk.STOCK_CLOSE, gtk.RESPONSE_OK))
dia.set_default_size(500, 300) dia.set_default_size(500, 300)
l = gtk.Label("GTK is working!") l = gtk.Label("GTK is working!\nConfig location: %s" %config_path)
dia.vbox.add(l) dia.vbox.add(l)
l.show() l.show()