diff --git a/ElaWidgetTools b/ElaWidgetTools index 34882e1..e3ed9f5 160000 --- a/ElaWidgetTools +++ b/ElaWidgetTools @@ -1 +1 @@ -Subproject commit 34882e153d4a26daa1d01dd92afe6878b6ae1da2 +Subproject commit e3ed9f5ea8e9da8ed56ce05444520bffb7ac2e25 diff --git a/example/ExamplePage/T_Graphics.py b/example/ExamplePage/T_Graphics.py deleted file mode 100644 index dd176cd..0000000 --- a/example/ExamplePage/T_Graphics.py +++ /dev/null @@ -1,44 +0,0 @@ -from PyQt5.QtCore import * -from PyQt5.QtWidgets import * -from PyQt5.QtGui import * -from PyQt5ElaWidgetTools import * -from ExamplePage.T_BasePage import * - - -class T_Graphics(T_BasePage): - def __init__(self, parent=None): - super().__init__(parent) - - self.setWindowTitle("ElaGraphics") - - self.createCustomWidget( - "图形视图框架被放置于此,可在此界面体验其效果,按住Ctrl进行缩放,按住Shitf进行连接" - ) - - centralWidget = QWidget(self) - centralWidget.setWindowTitle("ElaGraphics") - - scene = ElaGraphicsScene(self) - scene.setSceneRect(0, 0, 1500, 1500) - item1 = ElaGraphicsItem() - item1.setWidth(100) - item1.setHeight(100) - item1.setMaxLinkPortCount(100) - item1.setMaxLinkPortCount(1) - item2 = ElaGraphicsItem() - item2.setWidth(100) - item2.setHeight(100) - scene.addItem(item1) - scene.addItem(item2) - view = ElaGraphicsView(scene) - view.setScene(scene) - view.setFixedHeight(600) - viewLayout = QHBoxLayout() - viewLayout.setContentsMargins(0, 0, 12, 0) - viewLayout.addWidget(view) - - centerVLayout = QVBoxLayout(centralWidget) - centerVLayout.setContentsMargins(0, 0, 0, 0) - centerVLayout.addLayout(viewLayout) - centerVLayout.addStretch() - self.addCentralWidget(centralWidget, True, False, 0) diff --git a/example/mainwindow.py b/example/mainwindow.py index e4222ea..2ea1419 100644 --- a/example/mainwindow.py +++ b/example/mainwindow.py @@ -10,7 +10,6 @@ from ExamplePage.T_Popup import * from ExamplePage.T_Navigation import * from ExamplePage.T_Card import * -from ExamplePage.T_Graphics import * from ExamplePage.T_ListView import * from ExamplePage.T_UpdateWidget import * from ExamplePage.T_TableView import * @@ -179,7 +178,6 @@ def initContent(self): self._elaScreenPage = QWidget() # T_ElaScreen(self); self._iconPage = T_Icon(self) self._baseComponentsPage = T_BaseComponents(self) - self._graphicsPage = T_Graphics(self) self._navigationPage = T_Navigation(self) self._popupPage = T_Popup(self) self._cardPage = T_Card(self) @@ -219,9 +217,6 @@ def initContent(self): ) self.expandNavigationNode(_viewKey) - self.addPageNodeKeyPoints( - "ElaGraphics", self._graphicsPage, 9, ElaIconType.IconName.Paintbrush - ) self.addPageNode("ElaCard", self._cardPage, ElaIconType.IconName.Cards) self.addPageNode( "ElaNavigation", self._navigationPage, ElaIconType.IconName.LocationArrow diff --git a/scripts/wheel/setup.py b/scripts/wheel/setup.py index 8ba9111..ea6b6a8 100644 --- a/scripts/wheel/setup.py +++ b/scripts/wheel/setup.py @@ -33,7 +33,7 @@ def has_ext_modules(self): setup( name=f"{bindingfor}-ElaWidgetTools", - version="0.10", + version="0.10.1", author="HIllya51", license="MIT", install_requires=[f"""{bindingfor}"""],