Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
total_control_app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Drechsler
total_control_app
Commits
dab5a262
Commit
dab5a262
authored
Jul 16, 2018
by
Martin Drechsler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor correction to make the code compatible to windows and linux.
parent
f636b3b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
myWidgets.py
myWidgets.py
+4
-3
No files found.
myWidgets.py
View file @
dab5a262
...
...
@@ -10,7 +10,7 @@ from ADoutputs import daq_AO, daq_DO
from
pyqtgraph.Qt
import
QtGui
,
QtCore
from
PyQt5.QtCore
import
QBasicTimer
from
PyQt5.QtWidgets
import
(
QPushButton
,
QWidget
,
QVBoxLayout
)
import
os
#An example of a class
class
anal_control_signal
(
QWidget
):
...
...
@@ -139,10 +139,11 @@ class activation_button(QWidget):
QWidget
.
__init__
(
self
)
self
.
button
=
QPushButton
(
''
,
self
)
self
.
button
.
clicked
.
connect
(
self
.
handleButton
)
self
.
button
.
setIcon
(
QtGui
.
QIcon
(
'snuffles1.png'
))
self
.
button
.
setIcon
(
QtGui
.
QIcon
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
"
\\
snuffles1.png"
))
self
.
button
.
setIconSize
(
QtCore
.
QSize
(
48
,
48
))
layout
=
QVBoxLayout
(
self
)
layout
.
addWidget
(
self
.
button
)
def
handleButton
(
self
):
self
.
button
.
setIcon
(
QtGui
.
QIcon
(
'snuffles.png'
))
\ No newline at end of file
self
.
button
.
setIcon
(
QtGui
.
QIcon
(
os
.
path
.
dirname
(
os
.
path
.
realpath
(
__file__
))
+
"
\\
snuffles.png"
))
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment