Skip to content

Is it possible to set the tab I want when open the GUI window? #180

Answered by alejandroautalan
d1658999 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @d1658999 thanks for trying pygubu.

I have numbers of tabs in mainwindow and I want a specific tab is fixed when opening GUI every time like temp PSU not FTM how to achieve this action?

You can do this by code. I uploaded an example here:

#
# Set second tab the active tab at start
#
self.notebook = builder.get_object("notebook1")
self.notebook.select(1)

Regards
Alejandro A.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by alejandroautalan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants