OpenShot Video Editor  2.0.0
upload_video.py
Go to the documentation of this file.
1 ##
2 #
3 # @file
4 # @brief This file loads the Upload Video dialog (i.e Upload a video in a web service)
5 # @author Jonathan Thomas <jonathan@openshot.org>
6 # @author Olivier Girard <olivier@openshot.org>
7 #
8 # @section LICENSE
9 #
10 # Copyright (c) 2008-2016 OpenShot Studios, LLC
11 # (http://www.openshotstudios.com). This file is part of
12 # OpenShot Video Editor (http://www.openshot.org), an open-source project
13 # dedicated to delivering high quality video editing and animation solutions
14 # to the world.
15 #
16 # OpenShot Video Editor is free software: you can redistribute it and/or modify
17 # it under the terms of the GNU General Public License as published by
18 # the Free Software Foundation, either version 3 of the License, or
19 # (at your option) any later version.
20 #
21 # OpenShot Video Editor is distributed in the hope that it will be useful,
22 # but WITHOUT ANY WARRANTY; without even the implied warranty of
23 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 # GNU General Public License for more details.
25 #
26 # You should have received a copy of the GNU General Public License
27 # along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
28 #
29 
30 import os
31 
32 from PyQt5.QtWidgets import *
33 
34 from classes import info, ui_util
35 
36 
37 ##
38 # Upload Video Dialog
39 class UploadVideo(QDialog):
40 
41  ui_path = os.path.join(info.PATH, 'windows', 'ui', 'upload-video.ui')
42 
43  def __init__(self):
44  # Create dialog class
45  QDialog.__init__(self)
46 
47  # Load UI from designer
48  ui_util.load_ui(self, self.ui_path)
49 
50  # Init Ui
51  ui_util.init_ui(self)
Upload Video Dialog.
Definition: upload_video.py:39
def init_ui(window)
Initialize all child widgets and action of a window or dialog.
Definition: ui_util.py:200
def load_ui(window, path)
Load a Qt *.ui file, and also load an XML parsed version.
Definition: ui_util.py:65