求助python图形化界面
python图形化界面头疼死了下了一个可视化编程的QtDesigner,但老是出错,错误如下
the file *** coulde not be opened:拒绝访问
在文件下改了属性和权限还是不行
之后,干脆直接在桌面新建了一个.ui文件,在PyCharm中打开用External tool 里添加的PyUIC(这个添加的工具是没有错的,应为改了好多次了)去直接把.ui改成.py
结果还是出错,错误是
one input ui-file must be specified
整个人都要抓狂了,有没有大神可以指出错误在哪啊,用的事Pycharm2016.3.3 和PyQt5
或者可不可以帮我转换一下呢,附上代码
程序代码:
<?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>537</width> <height>419</height> </rect> </property> <property name="windowTitle"> <string>Dialog</string> </property> <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> <string>TextLabel</string> </property> </widget> </item> <item row="0" column="1"> <widget class="QLineEdit" name="lineEdit"/> </item> <item row="1" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> <string>TextLabel</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QLineEdit" name="lineEdit_2"/> </item> <item row="2" column="0" colspan="2"> <widget class="QPushButton" name="pushButton"> <property name="text"> <string>PushButton</string> </property> </widget> </item> <item row="3" column="0" colspan="2"> <widget class="QListView" name="listView"/> </item> <item row="4" column="0" colspan="2"> <widget class="QPushButton" name="pushButton_2"> <property name="text"> <string>PushButton</string> </property> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>pushButton</sender> <signal>clicked()</signal> <receiver>Dialog</receiver> <slot>accept()</slot> <hints> <hint type="sourcelabel"> <x>26</x> <y>71</y> </hint> <hint type="destinationlabel"> <x>-60</x> <y>76</y> </hint> </hints> </connection> <connection> <sender>pushButton_2</sender> <signal>clicked()</signal> <receiver>Dialog</receiver> <slot>outputFile()</slot> <hints> <hint type="sourcelabel"> <x>396</x> <y>400</y> </hint> <hint type="destinationlabel"> <x>406</x> <y>483</y> </hint> </hints> </connection> <connection> <sender>pushButton</sender> <signal>clicked()</signal> <receiver>listView</receiver> <slot>doItemsLayout()</slot> <hints> <hint type="sourcelabel"> <x>325</x> <y>76</y> </hint> <hint type="destinationlabel"> <x>405</x> <y>140</y> </hint> </hints> </connection> </connections> <slots> <slot>outputFile()</slot> </slots> </ui>