Beispiel #1
0
#! /usr/bin/python

from options import AgendaOptions
from options import setup_options
from agenda_memory import AgendaMemory
from agenda_database import AgendaDatabase
from agenda_gtk import AgendaWindow
import agenda_gtk

#print setup_options.moptions

if setup_options.getRunAs() == "memory":
    agendaMemory = AgendaMemory()
    agendaMemory.init_agenda()
elif setup_options.getRunAs() == "database":
    agendaDatabase = AgendaDatabase()
    agendaDatabase.init_agenda()
elif setup_options.getRunAs() == "gtk":
    agenda = AgendaWindow()
    agenda.start_up()

else:
    print "There is none run as option available"
#! /usr/bin/python

from options import AgendaOptions
from options import setup_options
from agenda_memory import AgendaMemory
from agenda_database import AgendaDatabase
from agenda_gtk import AgendaWindow
import agenda_gtk


#print setup_options.moptions

if setup_options.getRunAs() == "memory":
    agendaMemory = AgendaMemory()
    agendaMemory.init_agenda()
elif setup_options.getRunAs() == "database":
    agendaDatabase = AgendaDatabase()
    agendaDatabase.init_agenda()
elif setup_options.getRunAs() == "gtk":
    agenda = AgendaWindow()
    agenda.start_up()
    
else:
    print "There is none run as option available"

#! /usr/bin/python

from options import setup_options
from stealer_terminal import StealerTerminal
#from options import AgendaOptions
#from agenda_memory import AgendaMemory
#from agenda_database import AgendaDatabase
#from agenda_gtk import AgendaWindow
#import agenda_gtk


#print setup_options.moptions

if setup_options.getRunAs() == "terminal":
    terminal = StealerTerminal()
    terminal.init_stealer()
    print "terminal"
elif setup_options.getRunAs() == "gtk":
    #agenda = AgendaWindow()
    #agenda.start_up()
    print "gtk"
    
else:
    print "There is none run as option available"