Beispiel #1
0
 def __init__(self, entry_dict={}):
     self.entry = None
     self.create_ui(const.GLADE_PATH, "dlg_entry", domain="jpa")
     self.window = self.ui.dlg_entry
     forms.set_window_icon(self.window)
     self.ui.tv_text.modify_font(pango.FontDescription("Monospace 10"))
     self.run()
Beispiel #2
0
 def __init__(self, entry_dict={}):
     self.entry = entry_dict
     self.saved = False
     self.create_ui(const.GLADE_PATH, 'dlg_entry', domain='jpa')
     self.window = self.ui.dlg_entry
     forms.set_window_icon(self.window)
     self._set_widget_properties()
Beispiel #3
0
 def __init__(self, entry_dict={}):
     self.entry = entry_dict
     self.saved = False
     self.create_ui(const.GLADE_PATH, 'dlg_entry', domain='jpa')
     self.window = self.ui.dlg_entry
     forms.set_window_icon(self.window)
     self._set_widget_properties()
Beispiel #4
0
 def __init__(self):
     self.cfg = const.CONFIG
     self.data = data.Storage()
     self.widget_tree = gtk.glade.XML(const.GLADE_PATH, 'frm_main', 'JPA')
     self.widget_tree.signal_autoconnect(self)
     self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
     self.window.connect('delete-event', self.delete_event)
     forms.set_window_icon(self.window)
     self.window.set_border_width(2)
     self.window.set_title('JPA, the Weblog Publishing Assistant')
     self.window.set_size_request(720, 560)
     self.main_box = gtk.VBox()
     uimgr = self._create_ui()
     uimgr.connect('connect-proxy',
         self._on_uimanager__connect_proxy)
     uimgr.connect('disconnect-proxy',
         self._on_uimanager__disconnect_proxy)
     menubar = uimgr.get_widget('/Menubar')
     self.main_box.pack_start(menubar, expand=False)
     toolbar = uimgr.get_widget('/Toolbar')
     self.main_box.pack_start(toolbar, expand=False)
     main_widget = self.widget_tree.get_widget('main_box')
     main_widget.unparent()
     self.main_box.pack_start(main_widget)
     self.statusbar = gtk.Statusbar()
     self.main_box.pack_end(self.statusbar, expand=False)
     self.window.add(self.main_box)
     self._menu_cix = -1
     self._set_widget_properties()
     self.queue = Queue.Queue()
Beispiel #5
0
 def __init__(self, config):
     self.cfg = config
     self.create_ui(const.GLADE_PATH, 'dlg_prefs', domain='jpa')
     self.window = self.ui.dlg_prefs
     forms.set_window_icon(self.window)
     self._load_config()
     self.run()
Beispiel #6
0
 def __init__(self, config):
     self.cfg = config
     self.create_ui(const.GLADE_PATH, "dlg_prefs", domain="jpa")
     self.window = self.ui.dlg_prefs
     forms.set_window_icon(self.window)
     self._load_config()
     self.run()
Beispiel #7
0
 def __init__(self):
     self.cfg = const.CONFIG
     self.data = data.Storage()
     self.widget_tree = gtk.glade.XML(const.GLADE_PATH, 'frm_main', 'JPA')
     self.widget_tree.signal_autoconnect(self)
     self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
     self.window.connect('delete-event', self.delete_event)
     forms.set_window_icon(self.window)
     self.window.set_border_width(2)
     self.window.set_title('JPA, the Weblog Publishing Assistant')
     self.window.set_size_request(720, 560)
     self.main_box = gtk.VBox()
     uimgr = self._create_ui()
     uimgr.connect('connect-proxy', self._on_uimanager__connect_proxy)
     uimgr.connect('disconnect-proxy', self._on_uimanager__disconnect_proxy)
     menubar = uimgr.get_widget('/Menubar')
     self.main_box.pack_start(menubar, expand=False)
     toolbar = uimgr.get_widget('/Toolbar')
     self.main_box.pack_start(toolbar, expand=False)
     main_widget = self.widget_tree.get_widget('main_box')
     main_widget.unparent()
     self.main_box.pack_start(main_widget)
     self.statusbar = gtk.Statusbar()
     self.main_box.pack_end(self.statusbar, expand=False)
     self.window.add(self.main_box)
     self._menu_cix = -1
     self._set_widget_properties()
     self.queue = Queue.Queue()
Beispiel #8
0
 def __init__(self, entry_dict={}):
     self.entry = None
     self.create_ui(const.GLADE_PATH, 'dlg_entry', domain='jpa')
     self.window = self.ui.dlg_entry
     forms.set_window_icon(self.window)
     self.ui.tv_text.modify_font(pango.FontDescription('Monospace 10'))
     self.run()
Beispiel #9
0
 def __init__(self):
     self.create_ui(const.GLADE_PATH, 'dlg_bloglist', domain='jpa')
     self.window = self.ui.dlg_bloglist
     forms.set_window_icon(self.window)
     self._set_widgets()
     self.idle_timer = None
     self.queue = Queue.Queue()
     self.window.present()
Beispiel #10
0
 def __init__(self, config):
     self.cfg = config
     self.create_ui(const.GLADE_PATH, 'dlg_prefs', domain='jpa')
     self.window = self.ui.dlg_prefs
     forms.set_window_icon(self.window)
     self._set_widgets()
     self._load_config()
     self.run()
Beispiel #11
0
 def __init__(self, login, password, captcha):
     self.login = login
     self.password = password
     self.captcha = captcha
     self.create_ui(const.GLADE_PATH, 'dlg_auth', domain='jpa')
     self.window = self.ui.dlg_auth
     forms.set_window_icon(self.window)
     self._set_widgets()
Beispiel #12
0
 def __init__(self):
     self.create_ui(const.GLADE_PATH, "dlg_bloglist", domain="jpa")
     self.window = self.ui.dlg_bloglist
     forms.set_window_icon(self.window)
     self._set_widgets()
     self.idle_timer = None
     self.queue = Queue.Queue()
     self.window.present()
Beispiel #13
0
def show_dialog():
    dlg = gtk.AboutDialog()
    try:
        gtk.about_dialog_set_url_hook(open_url, None)
        forms.set_window_icon(dlg)
        dlg.set_name('JPA')
        dlg.set_version('0.6.0')
        dlg.set_comments(_('Blogger Publishing Assistant'))
        dlg.set_website('http://jpa.berlios.de')
        fp = open(os.path.join(const.BASE_DIR, 'doc', 'AUTHORS'))
        try:
            lines = fp.read().strip().split('\n')
        finally:
            fp.close()
        dlg.set_authors(lines)
        dlg.set_copyright('Copyright: (c) 2007, Jarek Zgoda <*****@*****.**>')
        fp = open(os.path.join(const.BASE_DIR, 'doc', 'COPYING'))
        try:
            dlg.set_license(fp.read().strip())
        finally:
            fp.close()
        dlg.run()
    finally:
        dlg.destroy()
Beispiel #14
0
def show_dialog():
    dlg = gtk.AboutDialog()
    try:
        gtk.about_dialog_set_url_hook(open_url, None)
        forms.set_window_icon(dlg)
        dlg.set_name('JPA')
        dlg.set_version(const.VERSION_STRING)
        dlg.set_comments(_('Blogger Publishing Assistant'))
        dlg.set_website('http://jpa.berlios.de')
        fp = open(os.path.join(const.BASE_DIR, 'doc', 'AUTHORS'))
        try:
            lines = fp.read().strip().split('\n')
        finally:
            fp.close()
        dlg.set_authors(lines)
        dlg.set_copyright('Copyright: (c) 2007, Jarek Zgoda <*****@*****.**>')
        fp = open(os.path.join(const.BASE_DIR, 'doc', 'COPYING'))
        try:
            dlg.set_license(fp.read().strip())
        finally:
            fp.close()
        dlg.run()
    finally:
        dlg.destroy()