1
0
mirror of https://github.com/gryf/wmdocklib.git synced 2025-12-19 12:28:10 +01:00

1293224 char font

recalculating the height of the lines.
This commit is contained in:
mfrasca
2006-10-06 16:27:03 +00:00
parent 40044a31ce
commit d26e4815fe
2 changed files with 9 additions and 5 deletions

View File

@@ -147,7 +147,7 @@ class PywmHDMon:
x + paintWidth + xOffset, y + yOffset)
def getY(self, line):
return 2 + (line - 1) * (char_height + 3)
return 2 + (line - 1) * (char_height + 1)
def paintLabel(self, line, label):
self.addString(label, 1, self.getY(line))
@@ -446,8 +446,8 @@ def main():
displayMode = defaultMode
pathsToMonitor.append((label[:3], path, displayMode, action))
wmdocklib.addMouseRegion(i,
8, 8 + (i - 1) * (char_height + 3),
58, 4 + i * (char_height + 3))
8, 8 + (i - 1) * (char_height + 1),
58, 4 + i * (char_height + 1))
procStat = config.get('procstat', defaultProcStat)
skipping = int(config.get('skipconf', 0))
actMonEnabled = int(config.get('monitoring'))