How to add widgets to ScrolledFrame? #170
Answered
by
alejandroautalan
ponchofiesta
asked this question in
Q&A
-
I want to add child elements to a ScrolledFrame. This works statically in the pygubu-designer. But how to add widgets programmatically? # This is the ScrolledFrame widget
groups_frame = builder.get_object("container")
# Trying to add custom widget to ScrolledFrame
group = ImageGroup(...., root=self.groups_frame) The ImageGroup widget is shown but below the ScrolledFrame. Do I need another root as parent widget? |
Beta Was this translation helpful? Give feedback.
Answered by
alejandroautalan
Nov 30, 2022
Replies: 1 comment 1 reply
-
Hello @ponchofiesta thanks for trying pygubu.
Create the child widgets using the scrolledframe.innerframe property as master. # 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 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ponchofiesta
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @ponchofiesta thanks for trying pygubu.
Create the child widgets using the scrolledframe.innerframe property as master.
In your example:
Let me know
Regards