예제 #1
0
def prefBGcolor():
    askPreferences(['bgcolor'])
    draw.bgcolor(GD.config['bgcolor'])
예제 #2
0
def prefBGcolor():
    col = qt.QColorDialog.getColor(qt.QColor(GD.cfg.setdefault('bgcolor','')))
    if col.isValid():
        GD.prefsChanged = True
        GD.cfg['bgcolor'] = str(col.name()) # convert qstring to Python string!
        draw.bgcolor(col)
예제 #3
0
def setBGcolor():
    col = GD.cfg['draw/bgcolor']
    col = widgets.getColor(col)
    if col:
        GD.cfg['draw/bgcolor'] = col
        draw.bgcolor(col)
예제 #4
0
def prefBGcolor():
    col = qt.QColorDialog.getColor(qt.QColor(GD.cfg.setdefault('bgcolor','')))
    if col.isValid():
        GD.cfg['bgcolor'] = col.name()
        draw.bgcolor(col)