Skip to content

How to add widgets to ScrolledFrame? #170

Discussion options

You must be logged in to vote

Hello @ponchofiesta thanks for trying pygubu.

I want to add child elements to a ScrolledFrame. This works statically in the pygubu-designer. But how to add widgets programmatically?

Create the child widgets using the scrolledframe.innerframe property as master.
In your example:

# This is the ScrolledFrame widget
groups_frame = builder.get_object("container")
# Trying to add custom widget to ScrolledFrame
group = ImageGroup(...., root=self.groups_frame.innerframe)

Let me know
Regards

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ponchofiesta
Comment options

Answer selected by ponchofiesta
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