Bonjour,
Quand j'essaye d'exécuter le MyMain.py généré par tes scripts, en faisant "python MyMain.py" , voici le résultat:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 C:\Program_Dev>python MyMain.py Traceback (most recent call last): File "MyMain.py", line 1, in <module> from Interface import Ui_MainWindow ImportError: cannot import name 'Ui_MainWindow'
Softs utilisés: PyQt-gpl-5.4.1
Python 3.4
Voici le contenu de mon *.ui :
Merci
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89 <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Dialog</class> <widget class="QDialog" name="Dialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>702</width> <height>310</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <layout class="QVBoxLayout" name="verticalLayout"> <item> <widget class="QPushButton" name="Choosefile"> <property name="text"> <string>Choose log</string> </property> </widget> </item> <item> <widget class="QPushButton" name="pushButton"> <property name="text"> <string>Update Robot List</string> </property> </widget> </item> <item alignment="Qt::AlignHCenter"> <widget class="QDialogButtonBox" name="buttonBox"> <property name="layoutDirection"> <enum>Qt::LeftToRight</enum> </property> <property name="orientation"> <enum>Qt::Horizontal</enum> </property> <property name="standardButtons"> <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set> </property> </widget> </item> </layout> <action name="actionChooseFile"> <property name="text"> <string>ChooseFile</string> </property> <property name="toolTip"> <string><html><head/><body><p>Select logs file</p></body></html></string> </property> </action> </widget> <resources/> <connections> <connection> <sender>buttonBox</sender> <signal>accepted()</signal> <receiver>Dialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>218</x> <y>284</y> </hint> <hint type="destinationlabel"> <x>157</x> <y>274</y> </hint> </hints> </connection> <connection> <sender>buttonBox</sender> <signal>rejected()</signal> <receiver>Dialog</receiver> <slot>reject()</slot> <hints> <hint type="sourcelabel"> <x>286</x> <y>290</y> </hint> <hint type="destinationlabel"> <x>286</x> <y>274</y> </hint> </hints> </connection> </connections> </ui>
Partager