Warum haben Tkinter-Apps, die unter UV laufen, seltsame Schriftarten?Python

Python-Programme
Anonymous
 Warum haben Tkinter-Apps, die unter UV laufen, seltsame Schriftarten?

Post by Anonymous »

Ich habe eine einfache Tkinter-App:

Code: Select all

import tkinter as tk
from tkinter import ttk

def main() -> None:
root = tk.Tk()
root.title('Hello world')
label = ttk.Label(root, text='Hola Mundo')
label.grid(row=0, column=0, sticky=tk.E, padx=5, pady=5)
root.geometry('400x400')
root.mainloop()

if __name__ == '__main__':
main()
Bei Ausführung mit Python (

Code: Select all

python main.py
) ist das Ergebnis:
Image

aber wenn ich unter UV laufe (

Code: Select all

uv run main.py
) Ich erhalte:
Image

Die Beschriftungsschriftart wird in der UV-Umgebung nicht gerendert.
Das Setup läuft auf CachyOS, ohne virtuelle Umgebung (ich habe das Problem sogar mit einer).
Ich verwende UV als ein integraler Bestandteil meines Workflows auf anderen Plattformen, und ich möchte zu CachyOS wechseln, aber das ist ein Problem
Gibt es einige Bibliotheken, die mir fehlen, oder gibt es eine andere einfache Lösung?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post