Example #1
0
from SimpleGladeApp import SimpleGladeApp
from SimpleGladeApp import bindtextdomain
import autituxhelper
import common_functions
import gobject
import threading
import optparse
import config 

app_name = "autitux"
app_version = "0.0.1"

glade_dir = ""
locale_dir = ""

bindtextdomain(app_name, locale_dir)


class Mainwindow(SimpleGladeApp):

    def __init__(self, path="autitux.glade",
                 root="mainWindow",
                 domain=app_name, **kwargs):
        path = os.path.join(glade_dir, path)
        SimpleGladeApp.__init__(self, path, root, domain, **kwargs)
        gobject.threads_init()
        self.coma = autituxhelper.relayCommand()

    #-- Mainwindow.new {
    def new(self):
        print "A new %s has been created" % self.__class__.__name__
Example #2
0
import core.env as env
from core.env import _
import core.preferences as preferences
import core.uriparser as uriparser

import ui.mp3tree as mp3tree
import ui.filechooser as filechooser
import ui.message as message
import ui.listmodel as listmodel
import ui.progressbar as progressbar
import ui.notifier as notifier
import ui.settings as settings


# Bind language on glade files
bindtextdomain(env.APP_NAME, env.I18N_PATH)

class GMusicTagger(SimpleGladeApp):
    """ Main controller for the GMusicTagger GUI """

    ###########################################################################    
    ## Intialize Methods
    
    def __init__(self, path="ui/glade/gmusictagger.glade",
                 root="GMusicTagger",
                 domain=env.APP_NAME,
                 **kwargs):
        """ Intialize the Glade Files and the extra Widget.
        Also initialize the log, the core helpers and the text domain """        
        SimpleGladeApp.__init__(self, path, root, domain, **kwargs)             
        
Example #3
0
    print "sudo apt-get install python-glade2 python-gtk2 python-pysqlite2"
    exit(1)

import os
from glob import glob
from time import localtime

from SimpleGladeApp import SimpleGladeApp
from SimpleGladeApp import bindtextdomain

app_name = "taskMonkee"
app_version = "0.1"
glade_dir = ""
locale_dir = ""

bindtextdomain(app_name, locale_dir)


# The main window.
# Keeps track of task, which should be done today.
# This includes late tasks and the ones not having a due date.
class Mainwindow(SimpleGladeApp):

    # Create the window and connect to the database
    def __init__(self,
                 path="gui.glade",
                 root="MainWindow",
                 domain=app_name,
                 **kwargs):
        path = os.path.join(glade_dir, path)
        SimpleGladeApp.__init__(self, path, root, domain, **kwargs)