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

[FEATURE] Tab index #51

Closed
mrx23dot opened this issue Nov 6, 2024 · 8 comments
Closed

[FEATURE] Tab index #51

mrx23dot opened this issue Nov 6, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@mrx23dot
Copy link

mrx23dot commented Nov 6, 2024

I'm looking for setting the Tab-index in a simple way.

In RADs usually there is an attribute like tab_order=8, tab_order=-1

This should not be connected to the order in xml.

some reference to do it:
https://stackoverflow.com/questions/6687108/how-to-set-the-tab-order-in-a-tkinter-application

@mrx23dot mrx23dot added the enhancement New feature or request label Nov 6, 2024
@ObaraEmmanuel
Copy link
Owner

That would involve changing the signature of the ttk.Notebook which is out of the scope of this framework. Addition of custom/special attributes can be done using custom widgets.

@ObaraEmmanuel
Copy link
Owner

ObaraEmmanuel commented Nov 6, 2024

I will try to add a way to easily change the ordering on the studio by altering the stacking order but I cannot add a special attribute for that.

@mrx23dot
Copy link
Author

mrx23dot commented Nov 6, 2024

What about manually sorting the event tree on left side? (move up/down)
That would change stacking order thus tab index too.
Seems simplest way.

@ObaraEmmanuel
Copy link
Owner

You mean like dragging the items from the tree? That is difficult to implement in a controlled fashion but maybe in future. I will add stuff to the context menu to reposition tabs.

@mrx23dot
Copy link
Author

mrx23dot commented Nov 6, 2024

I mean that tree already has an order e.g.

  • button1
  • text box1
  • button2

depending the order we placed them,
selecting one item and pressing move up/down button could rearrange it.
That order is carried over in xml.
And that gives us our stacking order, thus tab indexes.

@ObaraEmmanuel
Copy link
Owner

Yeah, that can be added.

@mrx23dot
Copy link
Author

mrx23dot commented Nov 7, 2024

Thinking about it the bring front/back functions already do that I guess, so they just need an alias.

@ObaraEmmanuel
Copy link
Owner

Fixed.

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

No branches or pull requests

2 participants