From ad13366bb195812a90dac964fcfec80ef94afd8b Mon Sep 17 00:00:00 2001 From: mollusk Date: Thu, 22 Aug 2019 18:54:55 -0700 Subject: [PATCH] initial setup --- continuity.ui | 356 ++++++++++++++++++++++++++++++++++++++++++++++++++ main.py | 230 ++++++++++++++++++++++++++++++++ 2 files changed, 586 insertions(+) create mode 100644 continuity.ui create mode 100755 main.py diff --git a/continuity.ui b/continuity.ui new file mode 100644 index 0000000..919f3af --- /dev/null +++ b/continuity.ui @@ -0,0 +1,356 @@ + + + Justin Moore + MainWindow + + + + 0 + 0 + 394 + 708 + + + + + 0 + 0 + + + + + 394 + 0 + + + + Continuity 0.0.1 + + + + + + + 1 + + + + Audio + + + + + + URL: + + + + + + + Paste URL here + + + + + + + Audio Format: + + + + + + + + Ogg + + + + + MP3 + + + + + FLAC + + + + + + + + Bitrate: + + + + + + + + 128 kb/s + + + + + 192 kb/s + + + + + 320 kb/s + + + + + + + + Play when finished?: + + + + + + + + yes + + + + + no + + + + + + + + Changelog: + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">* added more buttons</p></body></html> + + + + + + + OK + + + + + + + Reset + + + + + + + + Video + + + + + + URL: + + + + + + + Paste URL here + + + + + + + Video Format: + + + + + + + + MP4 + + + + + AVI + + + + + WEBM + + + + + + + + Bitrate: + + + + + + + + 128 kb/s + + + + + 192 kb/s + + + + + 320 kb/s + + + + + + + + Play when finished?: + + + + + + + + yes + + + + + no + + + + + + + + Changelog: + + + + + + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:10pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">* added more buttons</p></body></html> + + + + + + + OK + + + + + + + Reset + + + + + + + + + + + 24 + + + + + + + Status Output + + + + + + + + + 0 + 0 + 394 + 29 + + + + + File + + + + + + + Edit + + + + + + About + + + + + + + + + + Settings + + + + + Quit (Ctrl + q) + + + + + Settings + + + + + + diff --git a/main.py b/main.py new file mode 100755 index 0000000..87c6c86 --- /dev/null +++ b/main.py @@ -0,0 +1,230 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'continuity.ui' +# +# Created by: PyQt5 UI code generator 5.12.2 +# +# WARNING! All changes made in this file will be lost! + +from PyQt5 import QtCore, QtGui, QtWidgets + + +class Ui_MainWindow(object): + def setupUi(self, MainWindow): + MainWindow.setObjectName("MainWindow") + MainWindow.resize(394, 708) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth()) + MainWindow.setSizePolicy(sizePolicy) + MainWindow.setMinimumSize(QtCore.QSize(394, 0)) + self.centralwidget = QtWidgets.QWidget(MainWindow) + self.centralwidget.setObjectName("centralwidget") + self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget) + self.verticalLayout.setObjectName("verticalLayout") + self.tabs = QtWidgets.QTabWidget(self.centralwidget) + self.tabs.setObjectName("tabs") + self.audioTab = QtWidgets.QWidget() + self.audioTab.setObjectName("audioTab") + self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.audioTab) + self.verticalLayout_2.setObjectName("verticalLayout_2") + self.url_label = QtWidgets.QLabel(self.audioTab) + self.url_label.setObjectName("url_label") + self.verticalLayout_2.addWidget(self.url_label) + self.audio_url_entry = QtWidgets.QLineEdit(self.audioTab) + self.audio_url_entry.setObjectName("audio_url_entry") + self.verticalLayout_2.addWidget(self.audio_url_entry) + self.audio_format_select_label = QtWidgets.QLabel(self.audioTab) + self.audio_format_select_label.setObjectName("audio_format_select_label") + self.verticalLayout_2.addWidget(self.audio_format_select_label) + self.audio_format_select = QtWidgets.QComboBox(self.audioTab) + self.audio_format_select.setObjectName("audio_format_select") + self.audio_format_select.addItem("") + self.audio_format_select.addItem("") + self.audio_format_select.addItem("") + self.verticalLayout_2.addWidget(self.audio_format_select) + self.bitrate_select_label_a = QtWidgets.QLabel(self.audioTab) + self.bitrate_select_label_a.setObjectName("bitrate_select_label_a") + self.verticalLayout_2.addWidget(self.bitrate_select_label_a) + self.bitrate_select_a = QtWidgets.QComboBox(self.audioTab) + self.bitrate_select_a.setObjectName("bitrate_select_a") + self.bitrate_select_a.addItem("") + self.bitrate_select_a.addItem("") + self.bitrate_select_a.addItem("") + self.verticalLayout_2.addWidget(self.bitrate_select_a) + self.play_finished_label = QtWidgets.QLabel(self.audioTab) + self.play_finished_label.setObjectName("play_finished_label") + self.verticalLayout_2.addWidget(self.play_finished_label) + self.play_finished_select = QtWidgets.QComboBox(self.audioTab) + self.play_finished_select.setObjectName("play_finished_select") + self.play_finished_select.addItem("") + self.play_finished_select.addItem("") + self.verticalLayout_2.addWidget(self.play_finished_select) + self.changelog_box_label_a = QtWidgets.QLabel(self.audioTab) + self.changelog_box_label_a.setObjectName("changelog_box_label_a") + self.verticalLayout_2.addWidget(self.changelog_box_label_a) + self.changelog_text_box_a = QtWidgets.QTextBrowser(self.audioTab) + self.changelog_text_box_a.setObjectName("changelog_text_box_a") + self.verticalLayout_2.addWidget(self.changelog_text_box_a) + self.ok_button_a = QtWidgets.QPushButton(self.audioTab) + self.ok_button_a.setObjectName("ok_button_a") + self.verticalLayout_2.addWidget(self.ok_button_a) + self.reset_button_a = QtWidgets.QPushButton(self.audioTab) + self.reset_button_a.setObjectName("reset_button_a") + self.verticalLayout_2.addWidget(self.reset_button_a) + self.tabs.addTab(self.audioTab, "") + self.videoTab = QtWidgets.QWidget() + self.videoTab.setObjectName("videoTab") + self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.videoTab) + self.verticalLayout_4.setObjectName("verticalLayout_4") + self.video_url_label = QtWidgets.QLabel(self.videoTab) + self.video_url_label.setObjectName("video_url_label") + self.verticalLayout_4.addWidget(self.video_url_label) + self.url_entry_box_3 = QtWidgets.QLineEdit(self.videoTab) + self.url_entry_box_3.setObjectName("url_entry_box_3") + self.verticalLayout_4.addWidget(self.url_entry_box_3) + self.video_format_select_label = QtWidgets.QLabel(self.videoTab) + self.video_format_select_label.setObjectName("video_format_select_label") + self.verticalLayout_4.addWidget(self.video_format_select_label) + self.video_format_select = QtWidgets.QComboBox(self.videoTab) + self.video_format_select.setObjectName("video_format_select") + self.video_format_select.addItem("") + self.video_format_select.addItem("") + self.video_format_select.addItem("") + self.verticalLayout_4.addWidget(self.video_format_select) + self.bitrate_select_label_v = QtWidgets.QLabel(self.videoTab) + self.bitrate_select_label_v.setObjectName("bitrate_select_label_v") + self.verticalLayout_4.addWidget(self.bitrate_select_label_v) + self.bitrate_select_v = QtWidgets.QComboBox(self.videoTab) + self.bitrate_select_v.setObjectName("bitrate_select_v") + self.bitrate_select_v.addItem("") + self.bitrate_select_v.addItem("") + self.bitrate_select_v.addItem("") + self.verticalLayout_4.addWidget(self.bitrate_select_v) + self.play_finished_label_v = QtWidgets.QLabel(self.videoTab) + self.play_finished_label_v.setObjectName("play_finished_label_v") + self.verticalLayout_4.addWidget(self.play_finished_label_v) + self.play_finished_select_v = QtWidgets.QComboBox(self.videoTab) + self.play_finished_select_v.setObjectName("play_finished_select_v") + self.play_finished_select_v.addItem("") + self.play_finished_select_v.addItem("") + self.verticalLayout_4.addWidget(self.play_finished_select_v) + self.changelog_box_label_v = QtWidgets.QLabel(self.videoTab) + self.changelog_box_label_v.setObjectName("changelog_box_label_v") + self.verticalLayout_4.addWidget(self.changelog_box_label_v) + self.changelog_text_box_3 = QtWidgets.QTextBrowser(self.videoTab) + self.changelog_text_box_3.setObjectName("changelog_text_box_3") + self.verticalLayout_4.addWidget(self.changelog_text_box_3) + self.ok_button_3 = QtWidgets.QPushButton(self.videoTab) + self.ok_button_3.setObjectName("ok_button_3") + self.verticalLayout_4.addWidget(self.ok_button_3) + self.reset_button_3 = QtWidgets.QPushButton(self.videoTab) + self.reset_button_3.setObjectName("reset_button_3") + self.verticalLayout_4.addWidget(self.reset_button_3) + self.tabs.addTab(self.videoTab, "") + self.verticalLayout.addWidget(self.tabs) + self.main_progress_bar = QtWidgets.QProgressBar(self.centralwidget) + self.main_progress_bar.setProperty("value", 24) + self.main_progress_bar.setObjectName("main_progress_bar") + self.verticalLayout.addWidget(self.main_progress_bar) + self.status_text_label = QtWidgets.QLabel(self.centralwidget) + self.status_text_label.setObjectName("status_text_label") + self.verticalLayout.addWidget(self.status_text_label) + MainWindow.setCentralWidget(self.centralwidget) + self.menubar = QtWidgets.QMenuBar(MainWindow) + self.menubar.setGeometry(QtCore.QRect(0, 0, 394, 29)) + self.menubar.setObjectName("menubar") + self.menuMandy = QtWidgets.QMenu(self.menubar) + self.menuMandy.setObjectName("menuMandy") + self.menuEdit = QtWidgets.QMenu(self.menubar) + self.menuEdit.setObjectName("menuEdit") + self.menuAbout = QtWidgets.QMenu(self.menubar) + self.menuAbout.setObjectName("menuAbout") + MainWindow.setMenuBar(self.menubar) + self.statusbar = QtWidgets.QStatusBar(MainWindow) + self.statusbar.setObjectName("statusbar") + MainWindow.setStatusBar(self.statusbar) + self.actionSettings = QtWidgets.QAction(MainWindow) + self.actionSettings.setObjectName("actionSettings") + self.actionQuit_Ctrl_q = QtWidgets.QAction(MainWindow) + self.actionQuit_Ctrl_q.setObjectName("actionQuit_Ctrl_q") + self.actionSettings_2 = QtWidgets.QAction(MainWindow) + self.actionSettings_2.setObjectName("actionSettings_2") + self.menuMandy.addSeparator() + self.menuMandy.addAction(self.actionQuit_Ctrl_q) + self.menuEdit.addAction(self.actionSettings_2) + self.menubar.addAction(self.menuMandy.menuAction()) + self.menubar.addAction(self.menuEdit.menuAction()) + self.menubar.addAction(self.menuAbout.menuAction()) + + self.retranslateUi(MainWindow) + self.tabs.setCurrentIndex(1) + QtCore.QMetaObject.connectSlotsByName(MainWindow) + + def retranslateUi(self, MainWindow): + _translate = QtCore.QCoreApplication.translate + MainWindow.setWindowTitle(_translate("MainWindow", "Continuity 0.0.1")) + self.url_label.setText(_translate("MainWindow", "URL:")) + self.audio_url_entry.setText(_translate("MainWindow", "Paste URL here")) + self.audio_format_select_label.setText(_translate("MainWindow", "Audio Format:")) + self.audio_format_select.setItemText(0, _translate("MainWindow", "Ogg")) + self.audio_format_select.setItemText(1, _translate("MainWindow", "MP3")) + self.audio_format_select.setItemText(2, _translate("MainWindow", "FLAC")) + self.bitrate_select_label_a.setText(_translate("MainWindow", "Bitrate:")) + self.bitrate_select_a.setItemText(0, _translate("MainWindow", "128 kb/s")) + self.bitrate_select_a.setItemText(1, _translate("MainWindow", "192 kb/s")) + self.bitrate_select_a.setItemText(2, _translate("MainWindow", "320 kb/s")) + self.play_finished_label.setText(_translate("MainWindow", "Play when finished?:")) + self.play_finished_select.setItemText(0, _translate("MainWindow", "yes")) + self.play_finished_select.setItemText(1, _translate("MainWindow", "no")) + self.changelog_box_label_a.setText(_translate("MainWindow", "Changelog:")) + self.changelog_text_box_a.setHtml(_translate("MainWindow", "\n" +"\n" +"

* added more buttons

")) + self.ok_button_a.setText(_translate("MainWindow", "OK")) + self.reset_button_a.setText(_translate("MainWindow", "Reset")) + self.tabs.setTabText(self.tabs.indexOf(self.audioTab), _translate("MainWindow", "Audio")) + self.video_url_label.setText(_translate("MainWindow", "URL:")) + self.url_entry_box_3.setText(_translate("MainWindow", "Paste URL here")) + self.video_format_select_label.setText(_translate("MainWindow", "Video Format:")) + self.video_format_select.setItemText(0, _translate("MainWindow", "MP4")) + self.video_format_select.setItemText(1, _translate("MainWindow", "AVI")) + self.video_format_select.setItemText(2, _translate("MainWindow", "WEBM")) + self.bitrate_select_label_v.setText(_translate("MainWindow", "Bitrate:")) + self.bitrate_select_v.setItemText(0, _translate("MainWindow", "128 kb/s")) + self.bitrate_select_v.setItemText(1, _translate("MainWindow", "192 kb/s")) + self.bitrate_select_v.setItemText(2, _translate("MainWindow", "320 kb/s")) + self.play_finished_label_v.setText(_translate("MainWindow", "Play when finished?:")) + self.play_finished_select_v.setItemText(0, _translate("MainWindow", "yes")) + self.play_finished_select_v.setItemText(1, _translate("MainWindow", "no")) + self.changelog_box_label_v.setText(_translate("MainWindow", "Changelog:")) + self.changelog_text_box_3.setHtml(_translate("MainWindow", "\n" +"\n" +"

* added more buttons

")) + self.ok_button_3.setText(_translate("MainWindow", "OK")) + self.reset_button_3.setText(_translate("MainWindow", "Reset")) + self.tabs.setTabText(self.tabs.indexOf(self.videoTab), _translate("MainWindow", "Video")) + self.status_text_label.setText(_translate("MainWindow", "Status Output")) + self.menuMandy.setTitle(_translate("MainWindow", "File")) + self.menuEdit.setTitle(_translate("MainWindow", "Edit")) + self.menuAbout.setTitle(_translate("MainWindow", "About")) + self.actionSettings.setText(_translate("MainWindow", "Settings")) + self.actionQuit_Ctrl_q.setText(_translate("MainWindow", "Quit (Ctrl + q)")) + self.actionSettings_2.setText(_translate("MainWindow", "Settings")) + + + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + MainWindow = QtWidgets.QMainWindow() + ui = Ui_MainWindow() + ui.setupUi(MainWindow) + MainWindow.show() + sys.exit(app.exec_())