Ejemplo n.º 1
0
from scal2 import ui

from PyQt4 import QtGui as qt
from PyQt4 import QtCore as qc

from scal2.ui_qt.font_utils import qfontDecode

ui.initFonts(qfontDecode(qt.QApplication.font()))

Ejemplo n.º 2
0
windowList = IntegatedWindowList()

###########

if rtl:
    gtk.widget_set_default_direction(gtk.TEXT_DIR_RTL)

gtk.window_set_default_icon_from_file(ui.logo)

settings = gtk.settings_get_default()

## ui.timeout_initial = settings.get_property('gtk-timeout-initial') ## == 200 FIXME
## ui.timeout_repeat = settings.get_property('gtk-timeout-repeat') ## == 20 too small!! FIXME

ui.initFonts(getGtkDefaultFont())
ui.fontDefaultInit = ui.fontDefault

###########
textDirDict = {
    'ltr': gtk.TEXT_DIR_LTR,
    'rtl': gtk.TEXT_DIR_RTL,
    'auto': gtk.TEXT_DIR_NONE,
}

iconSizeList = [
    ('Menu', gtk.ICON_SIZE_MENU),
    ('Small Toolbar', gtk.ICON_SIZE_SMALL_TOOLBAR),
    ('Button', gtk.ICON_SIZE_BUTTON),
    ('Large Toolbar', gtk.ICON_SIZE_LARGE_TOOLBAR),
    ('DND', gtk.ICON_SIZE_DND),
Ejemplo n.º 3
0
windowList = IntegatedWindowList()

###########

if rtl:
    gtk.widget_set_default_direction(gtk.TEXT_DIR_RTL)

gtk.window_set_default_icon_from_file(ui.logo)

settings = gtk.settings_get_default()

## ui.timeout_initial = settings.get_property('gtk-timeout-initial') ## == 200 FIXME
## ui.timeout_repeat = settings.get_property('gtk-timeout-repeat') ## == 20 too small!! FIXME


ui.initFonts(gfontDecode(settings.get_property('gtk-font-name')))

###########
textDirDict = {
    'ltr': gtk.TEXT_DIR_LTR,
    'rtl': gtk.TEXT_DIR_RTL,
    'auto': gtk.TEXT_DIR_NONE,
}

##############################

#if ui.fontCustomEnable:## FIXME
#    settings.set_property('gtk-font-name', fontCustom)


dateFormat = '%Y/%m/%d'