fixed loop misjtake in dropdown menu creation

This commit is contained in:
paul-loedige
2020-12-20 01:24:14 +01:00
parent 2aaf1b4daa
commit 0615c3832d
3 changed files with 9 additions and 7 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import os
import time
hotkey_file='/home/paul/Hotkeys'
hotkey_picture='/home/paul/Hotkeys.png'
hotkey_picture='/home/paul/Pictures/Wallpapers/Hotkeys.png'
with open(hotkey_file) as file:
lines = [line.rstrip() for line in file]
@@ -19,7 +19,7 @@ for line in lines[:len(lines)//2]:
if os.path.isfile(hotkey_picture):
os.remove(hotkey_picture)
fontsize = 19
fontsize = 20
image = Image.new(mode = "RGB", size = (1440,900), color=(43,46,59))
ImageDraw.Draw(image).text((10,10), text1, font=ImageFont.truetype('/usr/share/fonts/ubuntu/UbuntuMono-R.ttf',fontsize), fill='#ffffff')