Commit 564f63d 1 parent e5d62f7 commit 564f63d Copy full SHA for 564f63d
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ def __init__(self, master=None):
46
46
47
47
# Create an empty vlc media player
48
48
self .mediaplayer = self .instance .media_player_new ()
49
+ self .mediaplayer .audio_set_volume (50 )
49
50
50
51
self .create_ui ()
51
52
self .is_paused = False
@@ -104,8 +105,13 @@ def create_ui(self):
104
105
105
106
# Add actions to file menu
106
107
open_action = QtWidgets .QAction ("Load Video" , self )
107
- close_action = QtWidgets .QAction ("Close App" , self )
108
+ open_shortcut = QtGui .QKeySequence (QtGui .QKeySequence .StandardKey .Open )
109
+ open_action .setShortcut (open_shortcut )
108
110
file_menu .addAction (open_action )
111
+
112
+ close_action = QtWidgets .QAction ("Close App" , self )
113
+ close_shortcut = QtGui .QKeySequence (QtGui .QKeySequence .StandardKey .Close )
114
+ close_action .setShortcut (close_shortcut )
109
115
file_menu .addAction (close_action )
110
116
111
117
open_action .triggered .connect (self .open_file )
You can’t perform that action at this time.
0 commit comments