Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyNutil
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Harry Carey
PyNutil
Commits
1d46af34
Commit
1d46af34
authored
7 months ago
by
Sharon Christine Yates
Browse files
Options
Downloads
Patches
Plain Diff
Update PyNutilGUI.py
parent
a528745e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PyNutilGUI.py
+30
-25
30 additions, 25 deletions
PyNutilGUI.py
with
30 additions
and
25 deletions
PyNutilGUI.py
+
30
−
25
View file @
1d46af34
...
...
@@ -34,8 +34,9 @@ def about_pynutil():
#Creating a menu
root
.
option_add
(
'
*tearOff
'
,
FALSE
)
win
=
Toplevel
(
root
)
menubar
=
Menu
(
win
)
#win = Toplevel(root)
#menubar = Menu(win)
menubar
=
Menu
(
root
)
#win['menu'] = menubar
root
.
config
(
menu
=
menubar
)
...
...
@@ -57,29 +58,33 @@ root.columnconfigure(0, weight=1) # column to expand if there is extra space
root
.
rowconfigure
(
0
,
weight
=
1
)
# row to expand if there is extra space
#ttk.Label(mainframe, text="PyNutil settings:").grid(column=0, row=1, sticky=W)
ttk
.
Label
(
mainframe
,
text
=
"
Reference atlas
"
,
width
=
20
).
grid
(
column
=
1
,
row
=
1
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Registration JSON
"
,
width
=
20
).
grid
(
column
=
1
,
row
=
2
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Segmentation folder
"
,
width
=
20
).
grid
(
column
=
1
,
row
=
3
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Object colour
"
,
width
=
20
).
grid
(
column
=
1
,
row
=
4
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Output directory
"
,
width
=
20
).
grid
(
column
=
1
,
row
=
5
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
1
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
2
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
3
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
4
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
5
,
sticky
=
W
)
ttk
.
OptionMenu
(
mainframe
,
selected_atlas
,
*
atlas
).
grid
(
column
=
3
,
row
=
1
,
sticky
=
W
)
ttk
.
OptionMenu
(
mainframe
,
selected_directory
,
*
directory
).
grid
(
column
=
3
,
row
=
2
,
sticky
=
W
)
ttk
.
OptionMenu
(
mainframe
,
selected_directory
,
*
directory
).
grid
(
column
=
3
,
row
=
3
,
sticky
=
W
)
ttk
.
OptionMenu
(
mainframe
,
selected_colour
,
*
colour
).
grid
(
column
=
3
,
row
=
4
,
sticky
=
W
)
ttk
.
OptionMenu
(
mainframe
,
selected_directory
,
*
directory
).
grid
(
column
=
3
,
row
=
5
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
4
,
row
=
1
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
4
,
row
=
2
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
4
,
row
=
3
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Select colour
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
4
,
row
=
4
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
4
,
row
=
5
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Select reference atlas:
"
,
width
=
30
).
grid
(
column
=
1
,
row
=
1
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Select registration JSON:
"
,
width
=
30
).
grid
(
column
=
1
,
row
=
2
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Select segmentation folder:
"
,
width
=
30
).
grid
(
column
=
1
,
row
=
3
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Select object colour:
"
,
width
=
30
).
grid
(
column
=
1
,
row
=
4
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Select output directory:
"
,
width
=
30
).
grid
(
column
=
1
,
row
=
5
,
sticky
=
W
)
ttk
.
Label
(
mainframe
,
text
=
"
Start analysis:
"
,
width
=
30
).
grid
(
column
=
1
,
row
=
6
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
3
,
row
=
1
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
3
,
row
=
2
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
3
,
row
=
3
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
3
,
row
=
4
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Help
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
3
,
row
=
5
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
text
=
"
Docs
"
,
width
=
8
,
command
=
"
buttonpressed
"
).
grid
(
column
=
3
,
row
=
6
,
sticky
=
W
)
ttk
.
OptionMenu
(
mainframe
,
selected_atlas
,
*
atlas
).
grid
(
column
=
2
,
row
=
1
,
sticky
=
W
)
#ttk.OptionMenu(mainframe, selected_directory, *directory).grid(column=3, row=2, sticky=W)
#ttk.OptionMenu(mainframe, selected_directory, *directory).grid(column=3, row=3, sticky=W)
#ttk.OptionMenu(mainframe, selected_colour, *colour).grid(column=3, row=4, sticky=W)
#ttk.OptionMenu(mainframe, selected_directory, *directory).grid(column=3, row=5, sticky=W)
#ttk.Button(mainframe, width=16, text="Browse...", command="buttonpressed").grid(column=4, row=1, sticky=W)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
2
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
3
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Colour
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
4
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Browse...
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
5
,
sticky
=
W
)
ttk
.
Button
(
mainframe
,
width
=
16
,
text
=
"
Run
"
,
command
=
"
buttonpressed
"
).
grid
(
column
=
2
,
row
=
6
,
sticky
=
W
)
# sunken frame around mainframe
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment