File tree 6 files changed +19
-21
lines changed
6 files changed +19
-21
lines changed Original file line number Diff line number Diff line change @@ -292,5 +292,6 @@ def onLogTheEnd():
292
292
log .info (time .asctime ().center (48 ))
293
293
log .info ("================================================" )
294
294
except Exception :
295
- from classes .logger import log
295
+ import logging
296
+ log = logging .getLogger ("OpenShot" )
296
297
log .warning ('Failed to write session ended log' )
Original file line number Diff line number Diff line change 1
- """
1
+ """
2
2
@file
3
3
@brief This file deals with unhandled exceptions
4
4
@author Jonathan Thomas <[email protected] >
5
-
5
+
6
6
@section LICENSE
7
-
7
+
8
8
Copyright (c) 2008-2018 OpenShot Studios, LLC
9
9
(http://www.openshotstudios.com). This file is part of
10
10
OpenShot Video Editor (http://www.openshot.org), an open-source project
11
11
dedicated to delivering high quality video editing and animation solutions
12
12
to the world.
13
-
13
+
14
14
OpenShot Video Editor is free software: you can redistribute it and/or modify
15
15
it under the terms of the GNU General Public License as published by
16
16
the Free Software Foundation, either version 3 of the License, or
17
17
(at your option) any later version.
18
-
18
+
19
19
OpenShot Video Editor is distributed in the hope that it will be useful,
20
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
22
GNU General Public License for more details.
23
-
23
+
24
24
You should have received a copy of the GNU General Public License
25
25
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
26
26
"""
Original file line number Diff line number Diff line change 1
- """
1
+ """
2
2
@file
3
3
@brief This file contains a timeline object, which listens for updates and syncs a libopenshot timeline object
4
4
@author Jonathan Thomas <[email protected] >
5
-
5
+
6
6
@section LICENSE
7
-
7
+
8
8
Copyright (c) 2008-2018 OpenShot Studios, LLC
9
9
(http://www.openshotstudios.com). This file is part of
10
10
OpenShot Video Editor (http://www.openshot.org), an open-source project
11
11
dedicated to delivering high quality video editing and animation solutions
12
12
to the world.
13
-
13
+
14
14
OpenShot Video Editor is free software: you can redistribute it and/or modify
15
15
it under the terms of the GNU General Public License as published by
16
16
the Free Software Foundation, either version 3 of the License, or
17
17
(at your option) any later version.
18
-
18
+
19
19
OpenShot Video Editor is distributed in the hope that it will be useful,
20
20
but WITHOUT ANY WARRANTY; without even the implied warranty of
21
21
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
22
GNU General Public License for more details.
23
-
23
+
24
24
You should have received a copy of the GNU General Public License
25
25
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
26
26
"""
Original file line number Diff line number Diff line change @@ -1689,7 +1689,7 @@ def keyPressEvent(self, event):
1689
1689
1690
1690
# If we didn't act on the event, forward it to the base class
1691
1691
else :
1692
- super (MainWindow , self ).keyPressEvent (event )
1692
+ super ().keyPressEvent (event )
1693
1693
1694
1694
1695
1695
def actionProfile_trigger (self , event ):
@@ -2602,10 +2602,10 @@ def ExportFinished(self, path):
2602
2602
except Exception :
2603
2603
log .debug ('Failed to notify unity launcher of export progress. Completed.' )
2604
2604
2605
- def __init__ (self , mode = None ):
2605
+ def __init__ (self , * args , mode = None ):
2606
2606
2607
2607
# Create main window base class
2608
- QMainWindow .__init__ (self )
2608
+ super () .__init__ (* args )
2609
2609
self .mode = mode # None or unittest (None is normal usage)
2610
2610
self .initialized = False
2611
2611
Original file line number Diff line number Diff line change 25
25
along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
26
26
"""
27
27
28
- import os
29
28
import time
30
29
import sip
31
30
35
34
36
35
from classes .app import get_app
37
36
from classes .logger import log
38
- from classes import settings
39
37
40
- import json
41
38
42
39
class PreviewParent (QObject ):
43
40
""" Class which communicates with the PlayerWorker Class (running on a separate thread) """
@@ -226,7 +223,6 @@ def LoadFile(self, path=None):
226
223
return
227
224
228
225
log .info ("LoadFile %s" % path )
229
- s = settings .get_settings ()
230
226
231
227
# Determine the current frame of the timeline (when switching to a clip)
232
228
seek_position = 1
@@ -248,7 +244,6 @@ def LoadFile(self, path=None):
248
244
seek_position = self .original_position
249
245
else :
250
246
# Create new timeline reader (to preview selected clip)
251
- s = settings .get_settings ()
252
247
project = get_app ().project
253
248
254
249
# Get some settings from the project
Original file line number Diff line number Diff line change @@ -3102,6 +3102,8 @@ def render_cache_json(self):
3102
3102
3103
3103
def __init__ (self , window ):
3104
3104
super ().__init__ ()
3105
+ self .setObjectName ("TimelineWebView" )
3106
+
3105
3107
self .window = window
3106
3108
self .setAcceptDrops (True )
3107
3109
self .last_position_frames = None
You can’t perform that action at this time.
0 commit comments