ceccopierangiolieugenio / pyTermTk

Python Terminal Toolkit - a Spiced Up Cross Compatible TUI Library 🌶️
https://ceccopierangiolieugenio.github.io/pyTermTk-Docs/
MIT License
598 stars 23 forks source link

Wanted to check with you this... shouldn't be `TTkComboBox` here? #60

Closed castben closed 2 years ago

castben commented 2 years ago

At the reference below, I suppose this will give the default name to the widget if you do not explicitly add it

https://github.com/ceccopierangiolieugenio/pyTermTk/blob/de5bbac1f91c5f89db771d4354bb21f049deacd7/TermTk/TTkWidgets/combobox.py#L46

But I will expect to be a TTkComboBox... I know this is a minor issue but just wondering about it. image

ceccopierangiolieugenio commented 2 years ago

yes I need to fix this. the reason of _name was for debugging purposes but I rarely used it, I wanted to find a more elegant way to address the name of the object but I was too lazy to find a better way to identify it. I will fix this typo soon. Which debugger are you using? I like it.

ceccopierangiolieugenio commented 2 years ago

Fixed in: https://github.com/ceccopierangiolieugenio/pyTermTk/commit/ac51650c883e47528a37bf34b6069c95b0cbc5fc

castben commented 2 years ago

Ah cool, Actually I've used this feature to locate widgets on a form to gather their actual values set, as some of my widgets need to re-populate their vakues depending on other widgets values...

I'm using IntellJ but it is a nightmare to do debugging, as I need to launch my program apart in a real Terminal, then attach debugger from IntellJ to my program running on this terminal...

It is not perfect as you lose total control of the window (it seems to freeze) only way I've found to trigger some events is:

1) Open actual form I want to debug 2) move to actual widget I need (using tab) 3) Attach debug process from intelliJ, then all freezes on my pyTermTk program 4) Use ^J to trigger event I want from this widget... 5) IntelliJ then stop at the "break" point I want...

as you see it is a very cumbersome process... if you have any other way to debug I will highly appreciate it

Terminal window embbed into IntelliJ Do not support programs that are using libraries like ncurses/curses...

Regards,

ceccopierangiolieugenio commented 2 years ago

I find vscode very handy to debug python code and it use the built int terminal automatically: image

castben commented 2 years ago

That's look pretty cool!

I wonder if that will work with me... as I'm on Linux I think I saw some VScode running on linux I may try it

Thank you very much. I think you can proceed to close this issue too :+1: