我尝试运行一个Python,它是来自PyForms的一个演示程序,它使用PyQt5、SIP和明显的QScintilla。
import pyforms
from pyforms import BaseWidget
from pyforms.controls import ControlText
from pyforms.controls import ControlButton
class Application(BaseWidget):
def __init__(self):
super(Application, self).__init__('Name of the app')
#Definition of the forms fields
self._firstname = ControlText('First name', 'Default value')
self._middlename = ControlText('Middle name')
self._lastname = ControlText('Lastname name')
self._fullname = ControlText('Full name')
self._button = ControlButton('Press this button')
我遇到了很多麻烦才谈到这一点。其中一个障碍是结合SIP获得合适的PyQt5 5版本。现在Pydev(Eclipse)提示我如下:
QScintilla2未安装 DLL加载失败: Die wurde nicht gefunden。
(翻译DE -> EN:找不到给定的过程)
安装了QScintilla2,我多次尝试在不同版本中重新安装。我不知道怎么用PIP来解决这个问题。
Windows 8
下的当前版本如下:
Python: 3.7 PyForms: 3.0.0 AnyQt: 0.0.8 PyQt5: 5.10.1 PyQt5 5-sip: 4.19.12 QScintilla: 2.10.7 高级督察: 4.19.8
对于那些想知道我之前修复PyQt5 5/sip障碍的人:Stackoverflow | Answer from user ntaro
如果您需要更多的信息,请告诉我!
发布于 2018-08-01 07:34:40
我卸载并安装了
QScintilla 毕弗斯 啜饮 PyQt5
顺序: SIP -> PyQt5 -> QScintilla -> ->
现在起作用了!
https://stackoverflow.com/questions/51633153
复制