ceccopierangiolieugenio / pyTermTk

Python Terminal Toolkit - a Spiced Up TUI Library 🌶️
https://ceccopierangiolieugenio.github.io/pyTermTk/
MIT License
585 stars 22 forks source link

Missing DataTable #238

Open TheLordOfTheKings opened 7 months ago

TheLordOfTheKings commented 7 months ago

Hi @ceccopierangiolieugenio, This amazing project misses some vital widgets like advanced DataTable, Switch, and Switchable contents. It would be awesome to have them, along with ttkDesigner, pyTermTk will be invincible. But most important is an advanced DataTable.

Thanks in advance.

ceccopierangiolieugenio commented 7 months ago

eh... I always procrastinated the implementation of a proper datatable, It is going to take a lot of time and effort but I think it is time to start working on it.

About the switch; you mean this?

image

it is basically a checkbox, I think I can easily style a checkbox to mimic it.

do you have an example of switchable content?

anyway, Thanks.

TheLordOfTheKings commented 7 months ago

Hey @ceccopierangiolieugenio, Thanks for answering so fast! After finding the amazing pyTermTk project, I'm really intrigued to start a small TUI application.😄 With a few more small widgets I can develop all of my GUI needs inside the Terminal and that's mind-blowing!

IMO an advanced DataTable with tree functionalities and inline Buttons (or other widgets) in rows and sorting would be awesome:

DataTable

Yes, I mean that kind of Toggle/Switch/CheckBox!

As for Switchable containers and some other container widgets that I really like to have, here are some examples, I think all of them are probably already possible in pyTermTk with some little tweaks that I don't know how!)

HidableContainer: HidableContent

CollapsibleContainer: FoldableContent2-ezgif com-video-to-gif-converter

SwitchableContainer: SwitchableContent-ezgif com-video-to-gif-converter

Header and Footer and more Norton Commander-ish design pattern: header-footer

Thanks.

ceccopierangiolieugenio commented 1 month ago

Wow, I totally forgot about this request. Although, I was sure I already replied it, maybe my answer got lost or never submitted, maybe is Alzheimer, only time will tell.

I am finally starting working on a Table widget,

About header or footer widgets, those can be easily designed using the current layout/widgets/shortcuts. The reason I haven't implemented anything specific yet is because I still haven't figured out a standard/easy way to do it that does not require piling up a bunch of buttons in a HLayout.