Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
team1920-SpeechComparison
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
msdt
team1920-SpeechComparison
Merge requests
!35
Sc 107/default extention file selection
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Sc 107/default extention file selection
SC-107/default-extention-file-selection
into
master
Overview
0
Commits
7
Pipelines
0
Changes
1
Merged
Ghost User
requested to merge
SC-107/default-extention-file-selection
into
master
5 years ago
Overview
0
Commits
7
Pipelines
0
Changes
1
Expand
What's new:
Automatically goes to the correct dir, depending if you look for shadows or source files!
Has .csv as default instead of .txt
Added .TextGrid as option
Title of file selection window dependent on whether you look for source or shadow files
File selection function has no code duplication anymore
Layout of code in some other files is fixed to meet PEP standards
0
0
Merge request reports
Viewing commit
4d9b4f4f
Prev
Next
Show latest version
1 file
+
13
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
4d9b4f4f
Changed layout mistakes in controller.py to PEP8 style.
· 4d9b4f4f
Vriezen, E.C. (Emma)
authored
5 years ago
mvc/controller.py
+
13
−
8
Options
@@ -2,6 +2,7 @@
from
tkinter.filedialog
import
*
import
os
class
ControllerClass
:
"""
Here the controller is located. Add all functionality as separate
functions.
@@ -29,19 +30,23 @@ class ControllerClass:
# Menu bindings, adds menu commands as well as where some specific
# elements such as separators are.
self
.
view
.
options_menu
.
add_command
(
label
=
"
Saving options
"
,
command
=
self
.
view
.
save_options_view
.
sav_opts_window
.
deiconify
)
self
.
view
.
options_menu
.
add_command
(
label
=
"
Saving options
"
,
command
=
self
.
view
.
save_options_view
.
sav_opts_window
.
deiconify
)
self
.
view
.
options_menu
.
add_separator
()
self
.
view
.
options_menu
.
add_command
(
label
=
"
Exit
"
,
command
=
self
.
view
.
window
.
quit
)
# Bindings for the actual options view
self
.
view
.
save_options_view
.
cancel_button_so
.
bind
(
"
<Button>
"
,
lambda
x
:
self
.
view
.
save_options_view
.
sav_opts_window
.
withdraw
())
self
.
view
.
save_options_view
.
save_button_so
.
bind
(
"
<Button>
"
,
lambda
x
:
self
.
set_curr_save_pref
())
self
.
view
.
save_options_view
.
cancel_button_so
.
bind
(
"
<Button>
"
,
lambda
x
:
self
.
view
.
save_options_view
.
sav_opts_window
.
withdraw
()
)
self
.
view
.
save_options_view
.
save_button_so
.
bind
(
"
<Button>
"
,
lambda
x
:
self
.
set_curr_save_pref
()
)
# Initialize preference values in view based on the model
self
.
view
.
save_options_view
.
curr_option
.
set
(
self
.
model
.
get_save_pref
())
Loading