Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] TKinter use, Works one and then freezes #374

Open
CodeKid2024 opened this issue Aug 13, 2024 · 1 comment
Open

[BUG] TKinter use, Works one and then freezes #374

CodeKid2024 opened this issue Aug 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@CodeKid2024
Copy link

CodeKid2024 commented Aug 13, 2024

Describe the bug
I am using tkinter (a python module for making GUI's) in the obsidian, and it works fine once after restarting obsidian. After I click on it a second time, the circle just keep son spinning and nothing happens.

Software Version
Windows 23H2

To Reproduce
Steps to reproduce the behavior:

  1. Past this code:
# importing only those functions which are needed 
from tkinter import *
from tkinter.ttk import *
from time import strftime 

# creating tkinter window 
root = Tk() 
root.title('Menu Demonstration') 

# Creating Menubar 
menubar = Menu(root) 

# Adding File Menu and commands 
file = Menu(menubar, tearoff = 0) 
menubar.add_cascade(label ='File', menu = file) 
file.add_command(label ='New File', command = None) 
file.add_command(label ='Open...', command = None) 
file.add_command(label ='Save', command = None) 
file.add_separator() 
file.add_command(label ='Exit', command = root.destroy) 

# Adding Edit Menu and commands 
edit = Menu(menubar, tearoff = 0) 
menubar.add_cascade(label ='Edit', menu = edit) 
edit.add_command(label ='Cut', command = None) 
edit.add_command(label ='Copy', command = None) 
edit.add_command(label ='Paste', command = None) 
edit.add_command(label ='Select All', command = None) 
edit.add_separator() 
edit.add_command(label ='Find...', command = None) 
edit.add_command(label ='Find again', command = None) 

# Adding Help Menu 
help_ = Menu(menubar, tearoff = 0) 
menubar.add_cascade(label ='Help', menu = help_) 
help_.add_command(label ='Tk Help', command = None) 
help_.add_command(label ='Demo', command = None) 
help_.add_separator() 
help_.add_command(label ='About Tk', command = None) 

# display Menu 
root.config(menu = menubar) 
mainloop()
  1. Run
  2. Close and run agian
  3. See error

Expected behavior
Repeat the exact same process as the first time.

Screenshots
image
image

@CodeKid2024 CodeKid2024 added the bug Something isn't working label Aug 13, 2024
@CodeKid2024
Copy link
Author

Restarting obsidian does fix the problem, but it is annoying. Have used your software before though, and it normally works great! This makes it really easy to document code in obsidian and record ideas. I am glad to have it. Thanks for all the work you put into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant