Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bdd31f0

Browse files
fix test
1 parent 87de7ee commit bdd31f0

File tree

4 files changed

+63
-62
lines changed

4 files changed

+63
-62
lines changed

‎Test/SlotsByName.py

Lines changed: 59 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
3-
4-
"""
5-
Created on 2019年1月5日
6-
@author: Irony
7-
@site: https://pyqt5.com https://github.com/892768447
8-
@email: 892768447@qq.com
9-
@file: Test.tSlotsByName
10-
@description:
11-
"""
12-
import sys
13-
14-
from PyQt5.QtCore import QMetaObject, pyqtSlot
15-
from PyQt5.QtWidgets import QWidget, QApplication, QVBoxLayout
16-
17-
from Widgets.RotateButton import RotateButton
18-
19-
20-
__Author__ = """By: Irony
21-
QQ: 892768447
22-
Email: 892768447@qq.com"""
23-
__Copyright__ = "Copyright (c) 2019 Irony"
24-
__Version__ = "Version 1.0"
25-
26-
27-
class Ui_FormMainWindow(object):
28-
29-
def setupUi(self, FormMainWindow):
30-
layout = QVBoxLayout(FormMainWindow)
31-
layout.addWidget(RotateButton('test', FormMainWindow, objectName='buttonTest'))
32-
QMetaObject.connectSlotsByName(FormMainWindow)
33-
34-
35-
class FrameWindow(QWidget):
36-
37-
def __init__(self, *args, **kwargs):
38-
super(FrameWindow, self).__init__(*args, **kwargs)
39-
40-
41-
class WindowBase:
42-
43-
@pyqtSlot()
44-
def on_buttonTest_clicked(self):
45-
print('clicked')
46-
47-
48-
class Window(FrameWindow, WindowBase, Ui_FormMainWindow):
49-
50-
def __init__(self, *args, **kwargs):
51-
super(Window, self).__init__(*args, **kwargs)
52-
self.setupUi(self)
53-
54-
55-
if __name__ == '__main__':
56-
app = QApplication(sys.argv)
57-
w = Window()
58-
w.show()
59-
sys.exit(app.exec_())
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
"""
5+
Created on 2019年1月5日
6+
@author: Irony
7+
@site: https://pyqt5.com https://github.com/892768447
8+
@email: 892768447@qq.com
9+
@file: Test.tSlotsByName
10+
@description:
11+
"""
12+
import sys
13+
14+
from PyQt5.QtCore import QMetaObject, pyqtSlot
15+
from PyQt5.QtWidgets import QWidget, QApplication, QVBoxLayout
16+
17+
from Widgets.Buttons.RotateButton import RotateButton
18+
19+
20+
__Author__ = """By: Irony
21+
QQ: 892768447
22+
Email: 892768447@qq.com"""
23+
__Copyright__ = "Copyright (c) 2019 Irony"
24+
__Version__ = "Version 1.0"
25+
26+
27+
class Ui_FormMainWindow(object):
28+
29+
def setupUi(self, FormMainWindow):
30+
layout = QVBoxLayout(FormMainWindow)
31+
layout.addWidget(RotateButton('test', FormMainWindow, objectName='buttonTest'))
32+
QMetaObject.connectSlotsByName(FormMainWindow)
33+
34+
35+
class FrameWindow(QWidget):
36+
37+
def __init__(self, *args, **kwargs):
38+
super(FrameWindow, self).__init__(*args, **kwargs)
39+
40+
41+
class WindowBase:
42+
43+
@pyqtSlot()
44+
def on_buttonTest_clicked(self):
45+
print('clicked')
46+
47+
48+
class Window(FrameWindow, WindowBase, Ui_FormMainWindow):
49+
50+
def __init__(self, *args, **kwargs):
51+
super(Window, self).__init__(*args, **kwargs)
52+
self.setupUi(self)
53+
54+
55+
if __name__ == '__main__':
56+
app = QApplication(sys.argv)
57+
w = Window()
58+
w.show()
59+
sys.exit(app.exec_())

‎Test/TestProgressButton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from PyQt5.QtCore import QTimer
22
from PyQt5.QtWidgets import QWidget, QVBoxLayout
33

4-
from Widgets.ProgressButton import ProgressButton
4+
from Widgets.Buttons.ProgressButton import ProgressButton
55

66

77
class Window(QWidget):

‎Test/TestRotateButton.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"""
1212
from PyQt5.QtWidgets import QWidget, QHBoxLayout
1313

14-
from Widgets.RotateButton import RotateButton
14+
from Widgets.Buttons.RotateButton import RotateButton
1515

1616

1717
__Author__ = """By: Irony

‎Test/TestRubberBandButton.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
@file: Test.TestRubberBandButton
1010
@description:
1111
"""
12-
from Widgets.RubberBandButton import RubberBandButton
12+
13+
from Widgets.Buttons.RubberBandButton import RubberBandButton
1314

1415

1516
__Author__ = """By: Irony

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /