1
0
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:
mfrasca
2006-10-14 08:17:14 +00:00
parent e8fbc09fd2
commit 87b09d0229
2 changed files with 29 additions and 23 deletions

View File

@@ -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()