Added forgoten file help.py

This commit is contained in:
Sergio Costas 2015-10-28 16:28:53 +01:00
parent dd8e5b595e
commit 58776ef1b6

17
src/devedeng/help.py Normal file
View file

@ -0,0 +1,17 @@
#!/usr/bin/env python3
from gi.repository import Gtk,Gdk
import devedeng.configuration_data
import os
class help:
def __init__(self,help_page):
self.config = devedeng.configuration_data.configuration.get_config()
file="file://"+os.path.join(self.config.help_path,"html",help_page)
retval = Gtk.show_uri(None,file,Gdk.CURRENT_TIME)
if retval == False:
msg=devede_dialogs.show_error(gladefile,_("Can't open the help files."))