Modules
Top-level package for deluge-gui.
app_state
¶
Application state store.
AppState
¶
Bases: CardState
Application state store.
Source code in deluge_gui/app_state.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 | |
decr_song_table_index()
¶
Decrement song index.
Source code in deluge_gui/app_state.py
123 124 125 126 127 | |
from_card(card)
¶
Increment song index.
Source code in deluge_gui/app_state.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
incr_song_table_index()
¶
Increment song index.
Source code in deluge_gui/app_state.py
129 130 131 132 133 | |
AppWindows
dataclass
¶
Manage the application windows.
Source code in deluge_gui/app_state.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | |
reveal_secondary(activate)
¶
Activate given window, hiding others.
Source code in deluge_gui/app_state.py
20 21 22 23 24 25 26 27 | |
CardState
¶
Represents state of the card.
Attributes:
| Name | Type | Description |
|---|---|---|
card |
DelugeCardFS
|
the deluge card. |
songs |
Mapping[str, Song]
|
list of Songs (from the current card) |
Source code in deluge_gui/app_state.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
get_kit_id(idx)
¶
Get the kit identified by index.
Source code in deluge_gui/app_state.py
58 59 60 61 | |
get_sample_key(sample_key)
¶
Get the sample identified by key (file path).
Source code in deluge_gui/app_state.py
68 69 70 71 | |
get_song_id(idx)
¶
Get the song identified by index.
Source code in deluge_gui/app_state.py
78 79 80 81 | |
get_synth_id(idx)
¶
Get the synth identified by index.
Source code in deluge_gui/app_state.py
88 89 90 91 | |
set_card(card)
¶
Set the card object.
Source code in deluge_gui/app_state.py
48 49 50 51 | |
set_kits(kits)
¶
Set the kits mapping path -> object.
Source code in deluge_gui/app_state.py
53 54 55 56 | |
set_samples(samples)
¶
Set the samples mapping path -> object.
Source code in deluge_gui/app_state.py
63 64 65 66 | |
set_songs(songs)
¶
Set the songs mapping path -> object.
Source code in deluge_gui/app_state.py
73 74 75 76 | |
set_synths(synths)
¶
Set the synths mapping path -> object.
Source code in deluge_gui/app_state.py
83 84 85 86 | |
card_views
¶
Card views.
get_cards_list(path=None)
¶
Get a list of paths that are Deluge Folder Systems.
Source code in deluge_gui/card_views.py
16 17 18 19 | |
layout_card_info(card)
¶
Elements for Card layout.
Source code in deluge_gui/card_views.py
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
select_card_control(default_value)
¶
Card Selector.
Source code in deluge_gui/card_views.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | |
config
¶
Application configuration.
deluge_gui
¶
Main module.
run_app()
¶
Run the app......
Source code in deluge_gui/deluge_gui.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
event_handlers
¶
Event handler functions.
do_card_list(event, values, windows, state_store)
¶
User changes the selected card.
Source code in deluge_gui/event_handlers.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | |
do_kit_table(event, values, windows, state_store)
¶
User changes the selected kit.
Source code in deluge_gui/event_handlers.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
do_play_sample(event, values, windows, state_store)
¶
Event handler for -PLAY-.
Source code in deluge_gui/event_handlers.py
17 18 19 20 21 | |
do_sample_tree(event, values, windows, state_store)
¶
Event handler for when user selects a node in the sample tree.
Source code in deluge_gui/event_handlers.py
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
do_song_table(event, values, windows, state_store)
¶
User changes the selected song.
Source code in deluge_gui/event_handlers.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
do_synth_table(event, values, windows, state_store)
¶
User changes the selected synth.
Source code in deluge_gui/event_handlers.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |
main_events_misc(event, values, windows, state_store)
¶
Misc events for the main window.
Source code in deluge_gui/event_handlers.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | |
kit_views
¶
Kit views.
kit_table_data(kits)
¶
Take a DFS Kits iterable, and return a table with...
Source code in deluge_gui/kit_views.py
68 69 70 71 72 73 74 | |
layout_kit_info()
¶
Elements for Kit layout.
Source code in deluge_gui/kit_views.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
layout_kit_samples()
¶
List samples in the kit.
Source code in deluge_gui/kit_views.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |
layout_kit_table()
¶
A layout a table of kit attributes.
Source code in deluge_gui/kit_views.py
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
sample_views
¶
Sample views.
layout_sample_info()
¶
Elements for Sample layout.
Source code in deluge_gui/sample_views.py
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | |
layout_sample_settings()
¶
List the sample settings.
Source code in deluge_gui/sample_views.py
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
layout_sample_tree()
¶
A layout a samples treem attributes.
Source code in deluge_gui/sample_views.py
214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 | |
sample_tree_data(card, samples)
¶
Take a samples iterable, and return sg tree.
Source code in deluge_gui/sample_views.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
to_tree(data)
¶
Convert flat list of path parts to tree. ref https://stackoverflow.com/a/68288876 .
Source code in deluge_gui/sample_views.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
settings_window
¶
Global user settings window.
get_demo_path()
¶
Get the top-level folder path.
:return: Path to list of files using the user settings for this file. Returns folder of this file if not found :rtype: str
Source code in deluge_gui/settings_window.py
8 9 10 11 12 13 14 15 16 | |
get_theme()
¶
Get the theme to use for the program.
Value is in this program's user settings. If none set, then use PySimpleGUI's global default theme :return: The theme :rtype: str
Source code in deluge_gui/settings_window.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | |
settings_window()
¶
Show the settings window.
This is where the folder paths and program paths are set. Returns True if settings were changed
:return: True if settings were changed :rtype: (bool)
Source code in deluge_gui/settings_window.py
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | |
song_views
¶
Song views.
layout_song_info()
¶
Elements for Card layout.
Source code in deluge_gui/song_views.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | |
layout_song_samples()
¶
List samples in the song.
Source code in deluge_gui/song_views.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
layout_song_table()
¶
A layout a table of song attributes.
Source code in deluge_gui/song_views.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | |
song_table_data(songs)
¶
Take a DFS Songs iterable, and return a table with...
Source code in deluge_gui/song_views.py
87 88 89 90 91 92 93 94 95 96 | |
sort_table(table, cols)
¶
Sort a table by multiple columns.
a list of lists (or tuple of tuples) where each inner list
represents a row
a list (or tuple) specifying the column numbers to sort by
e.g. (1,0) would sort by column 1, then by column 0
Source code in deluge_gui/song_views.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
synth_views
¶
Synth views.
layout_synth_info()
¶
Elements for Synth layout.
Source code in deluge_gui/synth_views.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
layout_synth_samples()
¶
List samples in the synth.
Source code in deluge_gui/synth_views.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
layout_synth_table()
¶
A layout a table of synth attributes.
Source code in deluge_gui/synth_views.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | |
synth_table_data(synths)
¶
Take a DFS Synths iterable, and return a table with...
Source code in deluge_gui/synth_views.py
75 76 77 78 79 80 81 | |
windows
¶
Window definitions and helper functions.
close_windows(windows)
¶
Dispose of all the windows.
Source code in deluge_gui/windows.py
188 189 190 191 192 193 | |
create_windows(state_store)
¶
Define layout and create Windows.
Source code in deluge_gui/windows.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | |
make_kit_window(x, y)
¶
Create the kit window.
Source code in deluge_gui/windows.py
44 45 46 47 48 49 50 51 52 53 54 55 56 | |
make_main_window(card)
¶
Create the main window.
Source code in deluge_gui/windows.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
make_sample_window(x, y)
¶
Create the sample window.
Source code in deluge_gui/windows.py
29 30 31 32 33 34 35 36 37 38 39 40 41 | |
make_song_window(x, y)
¶
Create the song window.
Source code in deluge_gui/windows.py
15 16 17 18 19 20 21 22 23 24 25 26 | |
make_synth_window(x, y)
¶
Create the synth window.
Source code in deluge_gui/windows.py
59 60 61 62 63 64 65 66 67 68 69 70 71 | |