Closed littlewhitecloud closed 9 months ago
This is impossible to fix without knowing what the problem is :)
You can:
git show
)imgbb is a good site.
What should I do to deal with
Something went really wrong, and we can't process that file????
Maybe take a small-ish screenshot, convert it to base64, and paste the base64 here?
To convert a file to base64, you can do this on Git Bash. I think you have Git installed.
$ base64 filename.png
If you don't have Git Bash, you can use python:
>>> import base64, textwrap
>>> content = open('filename.png','rb').read()
>>> print(textwrap.fill(base64.b64encode(content).decode('ascii')))
What file type are you using?
What should I do to deal with Something went really wrong, and we can't process that file????
Probably your file is corrupted, or there's something with your internet connection.
Maybe take a small-ish screenshot, convert it to base64, and paste the base64 here?
This is what sharing an image in 2024 looks like lol
Thanks!
Ahh, that's nothing weird, it's just tkinter's way of indicating that a menu item is disabled
I don't see anything weird 🤷♂️.
On my computer the same menu looks like:
And here is the relevant part of the base64 screenshot above:
IMO it looks much worse on littlewhitecloud's computer than on mine. The text doesn't even look like it's disabled, it's just kind of blurry.
I think this has to do with sv-ttk. It changes the look of the menu for me.
@littlewhitecloud Run this script, what do you get? Does removing sv_ttk.set_theme('dark')
change anything?
import tkinter
import sv_ttk # pip install sv-ttk
root = tkinter.Tk()
sv_ttk.set_theme('dark') # Try removing this line
main_menu = tkinter.Menu()
root.config(menu=main_menu)
submenu = tkinter.Menu(main_menu, tearoff=False)
main_menu.add_cascade(label="File", menu=submenu)
submenu.add_command(label="New File", accelerator="Ctrl+N")
submenu.add_command(label="Open", accelerator="Ctrl+O")
submenu.add_command(label="Save", accelerator="Ctrl+S", state="disabled")
submenu.add_command(label="Save As", accelerator="Ctrl+Shift+S", state="disabled")
submenu.add_separator()
submenu.add_command(label="Close", accelerator="Ctrl+W", state="disabled")
submenu.add_command(label="Quit", accelerator="Ctrl+Q")
root.mainloop()
And here is the relevant part of the base64 screenshot above:
IDK, it was always like that for me on Windoze.
After removing that line, everything is fine.
Hmm, sorry then.
sv-ttk
doesn't change the menu's looks on macOS, and it probably shouldn't change them on Windows either, as the menu bar isn't themable anyways. A PR to sv-ttk
is welcome to fix it, I'm not really working on it anymore.
Thanks!
I'm sorry I can't give screenshot because the shit github eats my screenshot (It uploads and disappeared)