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

Why opening new window #7

Open
devashish2024 opened this issue Mar 13, 2024 · 6 comments
Open

Why opening new window #7

devashish2024 opened this issue Mar 13, 2024 · 6 comments

Comments

@devashish2024
Copy link

Describe the bug
It opens a new window however it should give it in the same cmd/application (it might get a bit complex in intergrrated terminals) and option to open new or try to intergrate or merge in a existing gui/tkinter window object
image

And, there can be a event or "str" method in the taskbar progress class that returns true if its self.state == "done" and false vice versa. The example.py keeps saying close me, there should be event so that it will stop saying and exit as its closed.

  • you can close your python app and progress window keeps running

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@devashish2024
Copy link
Author

Ah forgot to fill more things, os windows 11 and reproduce just simply on windows as normal

@sposer
Copy link

sposer commented Apr 9, 2024

See: https://stackoverflow.com/questions/17607415/python-tkinter-windows-7-taskbar-progress
"In tkinter is better to use int(root.wm_frame(), 16) instead root.winfo_id()."
I solved it like this.

@N3RDIUM
Copy link
Owner

N3RDIUM commented Apr 9, 2024

Please show some code. From your comments, it is quite unclear if this is a problem with this library or your code itself.

@devashish2024
Copy link
Author

The code in your project, I didn't even write my code 💀 the test one, Ubuntu opens a new window also I ain't using tkitner...

I tried if it would work for cli

@sposer
Copy link

sposer commented Apr 10, 2024

Ah, I can provide a bit of code for a similar problem I've encountered.

import tkinter as tk
import PyTaskbar

root = tk.Tk()
root.title('Example')

# Neither initialization method works without this sentence.
root.update()

# Only the second of the following two sentences works.
# prog = PyTaskbar.Progress(root.winfo_id()) # Figure 1
prog = PyTaskbar.Progress(int(root.wm_frame(), 16))  # Figure 2
prog.init()
prog.setState('loading')
prog.init()

root.mainloop()

Figure 1
Figure 2

@devashish2024
Copy link
Author

Ah, I can provide a bit of code for a similar problem I've encountered.

import tkinter as tk
import PyTaskbar

root = tk.Tk()
root.title('Example')

# Neither initialization method works without this sentence.
root.update()

# Only the second of the following two sentences works.
# prog = PyTaskbar.Progress(root.winfo_id()) # Figure 1
prog = PyTaskbar.Progress(int(root.wm_frame(), 16))  # Figure 2
prog.init()
prog.setState('loading')
prog.init()

root.mainloop()

Figure 1 Figure 2

What I was reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants