mirror of
https://github.com/gryf/wmdocklib.git
synced 2025-12-19 12:28:10 +01:00
1578113: trailing black in text line
a few simple corrections in the defaults and options reading code.
This commit is contained in:
@@ -159,7 +159,8 @@ def addString(s, x, y):
|
||||
|
||||
def clearLine(y):
|
||||
"""Clear a line of text at position y."""
|
||||
wmdocklib.copyXPMArea(72, yOffset, width - 2 * xOffset, char_height,
|
||||
wmdocklib.copyXPMArea(72, yOffset,
|
||||
width - 2 * xOffset, char_height,
|
||||
xOffset, y + yOffset)
|
||||
|
||||
def getXY(line):
|
||||
@@ -525,7 +526,7 @@ def parseCommandLine(argv):
|
||||
sys.stdout.write(usage)
|
||||
sys.exit(0)
|
||||
if o in ('-t', '--text'):
|
||||
d['textcolor'] = a
|
||||
d['text'] = a
|
||||
if o in ('-b', '--background'):
|
||||
d['background'] = a
|
||||
if o in ('-F', '--font'):
|
||||
@@ -567,14 +568,14 @@ background = \
|
||||
' .///..___..ooo..___..___.......................................................................',
|
||||
' .///..___..ooo..___..___.......................................................................',
|
||||
' .///..___..ooo..___..___.......................................................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________................................',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///.._________________________________________________________________________________________',
|
||||
' .///..___..___..___..___.......................................................................',
|
||||
' .///..___..___..___..ooo.......................................................................',
|
||||
' .///..___..___..___..ooo.......................................................................',
|
||||
@@ -664,7 +665,7 @@ def main():
|
||||
global char_width, char_height
|
||||
char_width, char_height = wmdocklib.initPixmap(background,
|
||||
font_name=font,
|
||||
bg='f', fg='9',
|
||||
bg='_', fg='%',
|
||||
palette=palette)
|
||||
|
||||
wmdocklib.openXwindow(sys.argv, width, height)
|
||||
|
||||
Reference in New Issue
Block a user