N3RDIUM / PyTaskbar

The Ultimate python taskbar progress package!
MIT License
18 stars 4 forks source link

Windows Terminal support #3

Open couleurm opened 2 years ago

couleurm commented 2 years ago

Describe the bug When using this on Windows Terminal, instead of making a progress bar on the Windows Terminal process, it opens an OpenConsole.exe window instead

To Reproduce Steps to reproduce the behavior:

  1. Simply run python install.py while being in Windows Terminal

Expected behavior The windows terminal window gets the progress bar, not opencolse

Screenshots 1UGAj2f80q

Desktop (please complete the following information):

N3RDIUM commented 2 years ago

If you try it on VS Code, it will do the same thing. It just exposes a hidden terminal behind the GUI. You have to pass the window handle while instantiating the Progress class for now. Don't worry, I'll work on this issue!

couleurm commented 1 year ago

Do you have any updates regarding this bug, or an explanation on how I could obtain and pass the windows' handle? Thank you!

N3RDIUM commented 1 year ago

@couleurm the window handle is available as follows: from PyTaskbar import hWnd

SuperZombi commented 1 year ago

I have the same bug when running tkinter app image (Sublime, WinTerm, Extra Terminal, Tkinter)

N3RDIUM commented 1 year ago

I'll be adding Tkinter and Windows terminal support soon. The problem is, I have to do that on a VM now because I switched to Linux a long while back.