0

我尝试运行一个 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')

走到这一步我遇到了很多麻烦。一个障碍是获得合适的 PyQt5-Version 与 SIP 相结合。现在 Pydev(Eclipse) 提示我以下内容:

QScintilla2 未安装
DLL 加载失败:Die angegebene Prozedur 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-sip:4.19.12
QScintilla:
2.10.7 sip:4.19.8

对于想知道我之前修复 PyQt5/sip 障碍的人:Stackoverflow | 来自用户ntaro的回答

如果您需要更多信息,请告诉我!

4

1 回答 1

0

我卸载并安装了最新版本的

QScintilla
Pyforms
SIP
PyQt5

顺序:SIP -> PyQt5 -> QScintilla -> Pyforms

现在工作!

于 2018-08-01T15:34:40.350 回答