forked from openlp/openlp
not needed
bzr-revno: 273
This commit is contained in:
parent
89a886d7b3
commit
60afb882a9
@ -1,37 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Form implementation generated from reading ui file 'bibleimportprogress.ui'
|
||||
#
|
||||
# Created: Sun Nov 30 16:19:26 2008
|
||||
# by: PyQt4 UI code generator 4.4.3
|
||||
#
|
||||
# WARNING! All changes made in this file will be lost!
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
|
||||
class Ui_BibleImportProgressDialog(object):
|
||||
def setupUi(self, BibleImportProgressDialog):
|
||||
BibleImportProgressDialog.setObjectName("BibleImportProgressDialog")
|
||||
BibleImportProgressDialog.resize(505, 150)
|
||||
self.buttonBox = QtGui.QDialogButtonBox(BibleImportProgressDialog)
|
||||
self.buttonBox.setGeometry(QtCore.QRect(150, 110, 341, 32))
|
||||
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
|
||||
self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel)
|
||||
self.buttonBox.setObjectName("buttonBox")
|
||||
self.ProgressGroupBox = QtGui.QGroupBox(BibleImportProgressDialog)
|
||||
self.ProgressGroupBox.setGeometry(QtCore.QRect(10, 10, 481, 64))
|
||||
self.ProgressGroupBox.setObjectName("ProgressGroupBox")
|
||||
self.progressBar = QtGui.QProgressBar(self.ProgressGroupBox)
|
||||
self.progressBar.setGeometry(QtCore.QRect(10, 27, 451, 28))
|
||||
self.progressBar.setProperty("value", QtCore.QVariant(24))
|
||||
self.progressBar.setObjectName("progressBar")
|
||||
|
||||
self.retranslateUi(BibleImportProgressDialog)
|
||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("accepted()"), BibleImportProgressDialog.accept)
|
||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL("rejected()"), BibleImportProgressDialog.reject)
|
||||
QtCore.QMetaObject.connectSlotsByName(BibleImportProgressDialog)
|
||||
|
||||
def retranslateUi(self, BibleImportProgressDialog):
|
||||
BibleImportProgressDialog.setWindowTitle(QtGui.QApplication.translate("BibleImportProgressDialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8))
|
||||
self.ProgressGroupBox.setTitle(QtGui.QApplication.translate("BibleImportProgressDialog", "Progress", None, QtGui.QApplication.UnicodeUTF8))
|
||||
|
@ -1,58 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
"""
|
||||
Module implementing BibleImportDialog.
|
||||
"""
|
||||
import sys
|
||||
import os, os.path
|
||||
import sys
|
||||
import time
|
||||
|
||||
mypath=os.path.split(os.path.abspath(__file__))[0]
|
||||
sys.path.insert(0,(os.path.join(mypath, '..', '..', '..', '..')))
|
||||
|
||||
from PyQt4 import QtCore, QtGui
|
||||
from PyQt4.QtGui import QDialog
|
||||
from PyQt4.QtCore import pyqtSignature
|
||||
|
||||
from bibleimportprogressdialog import Ui_BibleImportProgressDialog
|
||||
from openlp.plugins.bibles.lib.biblemanager import BibleManager
|
||||
|
||||
class BibleImportProgressForm(QDialog, Ui_BibleImportProgressDialog):
|
||||
"""
|
||||
Class documentation goes here.
|
||||
"""
|
||||
def __init__(self, biblemanager = None, parent = None):
|
||||
"""
|
||||
Constructor
|
||||
"""
|
||||
QDialog.__init__(self, parent)
|
||||
self.setupUi(self)
|
||||
self.biblemanager = biblemanager
|
||||
self.progressBar.setValue(0)
|
||||
self.progress = 0
|
||||
|
||||
def setMax(self, max):
|
||||
self.progressBar.setMaximum(max)
|
||||
|
||||
def incrementBar(self):
|
||||
self.progress +=1
|
||||
self.progressBar.setValue(self.progress)
|
||||
|
||||
|
||||
#self.ProgressGroupBox.hide() # not wanted until we do some processing
|
||||
def on_buttonBox_clicked(self,button):
|
||||
print button.text()
|
||||
|
||||
class runner(QtGui.QApplication):
|
||||
|
||||
def run(self):
|
||||
self.bm = BibleManager()
|
||||
self.bim = BibleImportProgressForm(self.bm)
|
||||
self.bim.show()
|
||||
self.processEvents()
|
||||
sys.exit(app.exec_())
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = runner(sys.argv)
|
||||
app.run()
|
Loading…
Reference in New Issue
Block a user