Closed tnsolley closed 5 years ago
I've had a quick look at this, and by default the horizontal separator doesn't stretch. But, when I set sticky, it does stretch the width of the columns:
with gui('separators', '400x100') as app:
with app.labelFrame("Test Results"):
# app.sticky = 'news'
app.separator(row=0, column=0, colspan=19, sticky='news')
You can set sticky
as a standalone property for the container, or as a parameter to adding the separator.
@jarvisteach The method you suggested works, thank you so much! Having an issue with <addScrolledTextArea()>, and getting that to scale horizontally, too [opening in new issue].
Bug Report
Context
Attempting to create a test GUI for a project; each TabFrame represents a function-call, and will display certain variables as Entries with Labels next to them. To add to the visual aesthetic, and to separate certain variables, I am attempting to add VerticalSeparator() and HorizontalSeparator() in varying manners on each tab---essentially creating variations on a "grid" theme for each Tab.
Expected Behaviour
Separators, of the <.addHorizontalSeparator(row, column, colspace)> to span the full listed with sticky="news" for the Tab the LabelFrame is a member of.
Actual Behaviour
All horizontal separators are a fixed pixel-size in length, regardless of length of.
Any error messages produced by appJar
2018-10-04 11:16:18,316 appJar:WARNING [Line 4127->2283/setSize]: Specified dimensions (300, 350) less than requested dimensions (378, 265) 2018-10-04 11:16:19,505 appJar:WARNING [Line 4193->2283/setSize]: Specified dimensions (300, 350) less than requested dimensions (378, 265) 2018-10-04 11:16:19,739 appJar:WARNING [Line 4204->2283/setSize]: Specified dimensions (300, 350) less than requested dimensions (378, 265) 2018-10-04 11:16:20,913 appJar:WARNING [Line 4288->2283/setSize]: Specified dimensions (300, 350) less than requested dimensions (378, 265) 2018-10-04 11:16:21,089 appJar:WARNING [Line 4297->2283/setSize]: Specified dimensions (300, 330) less than requested dimensions (460, 373)
Sample code, demonstrating the issue
`# Results screen with app.tab("Results", bg="slategrey", sticky="news"): with app.labelFrame("Test Results"):
app.addImage("subPanel", "subpanel.png", row=0, column=0, colspan=10)
What steps are needed to reproduce the bug
Code is a modified version of the AppJar Showcase file (being used for demonstration purposes only, and Proof of Concept). Add the above code (there are other tabs I made, above is the worst case) within the
with app.tabbedFrame("Tabs"):
section.Version Information
Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:22:17) [MSC v.1500 32 bit (Intel)] on win32 Windows 10 AppJar 0.9.3