示例#1
0
sys.path.insert(0, dirname(dirname(dirname(__file__))))

from scal3.path import *
from scal3.utils import myRaise

if not isdir(confDir):
    from scal3.utils import restartLow
    try:
        __import__('scal3.ui_gtk.import_config_2to3')
    except:
        myRaise()
        if not isdir(confDir):
            os.mkdir(confDir, 0o755)
    else:
        restartLow()

from scal3.utils import versionLessThan
from scal3.cal_types import calTypes
from scal3 import core

from scal3 import locale_man
from scal3.locale_man import rtl, lang ## import scal3.locale_man after core
#_ = locale_man.loadTranslator(False)## FIXME
from scal3.locale_man import tr as _
from scal3 import event_lib
from scal3 import ui

import gi
import gi.repository.GObject as gobject
gi.require_version('GdkPixbuf', '2.0')
示例#2
0
sys.path.insert(0, dirname(dirname(dirname(__file__))))

from scal3.path import *
from scal3.utils import myRaise

if not isdir(confDir):
	from scal3.utils import restartLow
	try:
		__import__('scal3.ui_gtk.import_config_2to3')
	except:
		myRaise()
		if not isdir(confDir):
			os.mkdir(confDir, 0o755)
	else:
		restartLow()

from scal3.utils import versionLessThan
from scal3.cal_types import calTypes
from scal3 import core

from scal3 import locale_man
from scal3.locale_man import rtl, lang ## import scal3.locale_man after core
#_ = locale_man.loadTranslator(False)## FIXME
from scal3.locale_man import tr as _
from scal3 import event_lib
from scal3 import ui

from scal3.ui_gtk import *
from scal3.ui_gtk.decorators import registerSignals
from scal3.ui_gtk.utils import *