Skip to content

Commit b8d36ca

Browse files
authored
Merge pull request #88 from hsorby/main
Add buttons and display settings widgets with helper function
2 parents e94c8c8 + 40e6bf7 commit b8d36ca

File tree

7 files changed

+1840
-1
lines changed

7 files changed

+1840
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name = "cmlibs.widgets"
1010
dynamic = ["version"]
1111
keywords = ["CMLibs", "Zinc", "Widgets", "UI"]
1212
readme = "README.rst"
13-
license = "Apache-2.0"
13+
license = { file = "LICENSE" }
1414
authors = [
1515
{ name="Hugh Sorby", email="[email protected]" },
1616
]

res/designer/buttonswidget.ui

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>Buttons</class>
4+
<widget class="QWidget" name="Buttons">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>550</width>
10+
<height>59</height>
11+
</rect>
12+
</property>
13+
<property name="windowTitle">
14+
<string>Buttons</string>
15+
</property>
16+
<layout class="QHBoxLayout" name="horizontalLayout">
17+
<item>
18+
<widget class="QPushButton" name="pushButtonDocumentation">
19+
<property name="text">
20+
<string>Online Documentation</string>
21+
</property>
22+
</widget>
23+
</item>
24+
<item>
25+
<spacer name="horizontalSpacer_2">
26+
<property name="orientation">
27+
<enum>Qt::Horizontal</enum>
28+
</property>
29+
<property name="sizeHint" stdset="0">
30+
<size>
31+
<width>28</width>
32+
<height>20</height>
33+
</size>
34+
</property>
35+
</spacer>
36+
</item>
37+
<item>
38+
<widget class="QPushButton" name="viewAll_pushButton">
39+
<property name="text">
40+
<string>View All</string>
41+
</property>
42+
</widget>
43+
</item>
44+
<item>
45+
<widget class="QPushButton" name="stdViews_pushButton">
46+
<property name="text">
47+
<string>Std. Views</string>
48+
</property>
49+
</widget>
50+
</item>
51+
<item>
52+
<spacer name="horizontalSpacer_9">
53+
<property name="orientation">
54+
<enum>Qt::Horizontal</enum>
55+
</property>
56+
<property name="sizeHint" stdset="0">
57+
<size>
58+
<width>29</width>
59+
<height>20</height>
60+
</size>
61+
</property>
62+
</spacer>
63+
</item>
64+
<item>
65+
<widget class="QPushButton" name="done_pushButton">
66+
<property name="sizePolicy">
67+
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
68+
<horstretch>0</horstretch>
69+
<verstretch>0</verstretch>
70+
</sizepolicy>
71+
</property>
72+
<property name="text">
73+
<string>Done</string>
74+
</property>
75+
</widget>
76+
</item>
77+
</layout>
78+
</widget>
79+
<resources/>
80+
<connections/>
81+
</ui>

0 commit comments

Comments
 (0)