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,8 +159,9 @@ def addString(s, x, y):
|
|||||||
|
|
||||||
def clearLine(y):
|
def clearLine(y):
|
||||||
"""Clear a line of text at position y."""
|
"""Clear a line of text at position y."""
|
||||||
wmdocklib.copyXPMArea(72, yOffset, width - 2 * xOffset, char_height,
|
wmdocklib.copyXPMArea(72, yOffset,
|
||||||
xOffset, y + yOffset)
|
width - 2 * xOffset, char_height,
|
||||||
|
xOffset, y + yOffset)
|
||||||
|
|
||||||
def getXY(line):
|
def getXY(line):
|
||||||
"""Return the x and y positions to be used at line line."""
|
"""Return the x and y positions to be used at line line."""
|
||||||
@@ -525,7 +526,7 @@ def parseCommandLine(argv):
|
|||||||
sys.stdout.write(usage)
|
sys.stdout.write(usage)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
if o in ('-t', '--text'):
|
if o in ('-t', '--text'):
|
||||||
d['textcolor'] = a
|
d['text'] = a
|
||||||
if o in ('-b', '--background'):
|
if o in ('-b', '--background'):
|
||||||
d['background'] = a
|
d['background'] = a
|
||||||
if o in ('-F', '--font'):
|
if o in ('-F', '--font'):
|
||||||
@@ -567,14 +568,14 @@ background = \
|
|||||||
' .///..___..ooo..___..___.......................................................................',
|
' .///..___..ooo..___..___.......................................................................',
|
||||||
' .///..___..ooo..___..___.......................................................................',
|
' .///..___..ooo..___..___.......................................................................',
|
||||||
' .///..___..ooo..___..___.......................................................................',
|
' .///..___..ooo..___..___.......................................................................',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///.._________________________________________________________................................',
|
' .///.._________________________________________________________________________________________',
|
||||||
' .///..___..___..___..___.......................................................................',
|
' .///..___..___..___..___.......................................................................',
|
||||||
' .///..___..___..___..ooo.......................................................................',
|
' .///..___..___..___..ooo.......................................................................',
|
||||||
' .///..___..___..___..ooo.......................................................................',
|
' .///..___..___..___..ooo.......................................................................',
|
||||||
@@ -664,7 +665,7 @@ def main():
|
|||||||
global char_width, char_height
|
global char_width, char_height
|
||||||
char_width, char_height = wmdocklib.initPixmap(background,
|
char_width, char_height = wmdocklib.initPixmap(background,
|
||||||
font_name=font,
|
font_name=font,
|
||||||
bg='f', fg='9',
|
bg='_', fg='%',
|
||||||
palette=palette)
|
palette=palette)
|
||||||
|
|
||||||
wmdocklib.openXwindow(sys.argv, width, height)
|
wmdocklib.openXwindow(sys.argv, width, height)
|
||||||
|
|||||||
Reference in New Issue
Block a user