team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00228
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 416: import Qt forms from compiled files rather then load them on real-time
------------------------------------------------------------
revno: 416
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Sun 2012-11-04 14:11:28 +0100
message:
import Qt forms from compiled files rather then load them on real-time
modified:
src/alfanous-desktop/Gui.py
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-desktop/Gui.py'
--- src/alfanous-desktop/Gui.py 2012-10-30 18:03:50 +0000
+++ src/alfanous-desktop/Gui.py 2012-11-04 13:11:28 +0000
@@ -52,14 +52,10 @@
## Specification of resources paths
from alfanous.Data import Paths
-
-
-
-## Load Qt forms & dialogs on real time
-THIS_FILE_DIR_PATH = os.path.dirname(os.path.abspath(__file__)) + "/"
-Ui_MainWindow = uic.loadUiType( THIS_FILE_DIR_PATH + "UI/mainform.ui" )[0]
-Ui_aboutDlg = uic.loadUiType( THIS_FILE_DIR_PATH + "UI/aboutDlg.ui" )[0]
-Ui_preferencesDlg = uic.loadUiType( THIS_FILE_DIR_PATH + "UI/preferencesDlg.ui" )[0]
+## Importing Qt forms
+from mainform_ui import Ui_MainWindow
+from preferencesDlg_ui import Ui_preferencesDlg
+from aboutDlg_ui import Ui_Dialog as Ui_aboutDlg
## Initialize search engines
RAWoutput = Raw() # default paths
@@ -266,7 +262,6 @@
"aya_stat_info": self.o_aya_info.isChecked(),
"aya_sajda_info": self.o_aya_info.isChecked(),
"translation":self.o_traduction.currentText(),
-
}
try:
results = RAWoutput.do( search_flags )