mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-19 12:28:10 +01:00
1577060: colour choice at command line is lost
palette is now built using the options passed at command line.
This commit is contained in:
@@ -209,12 +209,17 @@ def main():
|
||||
except IndexError: # Should only happen when using the interpreter.
|
||||
programName = ''
|
||||
sys.argv[0] = programName
|
||||
|
||||
palette = {}
|
||||
palette[0] = clConfig.get('background', 'black')
|
||||
palette[2] = clConfig.get('foreground', 'cyan3')
|
||||
|
||||
global char_width, char_height
|
||||
char_width, char_height = wmdocklib.initPixmap(font_name='6x8',
|
||||
bg=0, fg=2, palette=palette)
|
||||
wmdocklib.openXwindow(sys.argv, width, height)
|
||||
mainLoop(timeFmt, dateFmt, dayFmt, weekFmt)
|
||||
|
||||
char_width, char_height = wmdocklib.initPixmap(font_name='6x8',
|
||||
bg=0, fg=2)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user