Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kulya
vmj-qt
Commits
c59465ef
Commit
c59465ef
authored
Oct 11, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added translate function
parent
9477b749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util.py
blink/util.py
+3
-2
No files found.
blink/util.py
View file @
c59465ef
from
PyQt5.QtCore
import
QObject
,
QThread
,
QTimer
from
PyQt5.QtCore
import
QObject
,
QThread
,
QTimer
,
QCoreApplication
from
PyQt5.QtWidgets
import
QApplication
from
PyQt5.QtWidgets
import
QApplication
from
application.python.decorator
import
decorator
,
preserve_signature
from
application.python.decorator
import
decorator
,
preserve_signature
from
application.python.descriptor
import
classproperty
from
application.python.descriptor
import
classproperty
...
@@ -11,8 +11,9 @@ from sys import exc_info
...
@@ -11,8 +11,9 @@ from sys import exc_info
from
blink.event
import
CallFunctionEvent
from
blink.event
import
CallFunctionEvent
__all__
=
[
'QSingleton'
,
'call_in_gui_thread'
,
'call_later'
,
'run_in_gui_thread'
]
__all__
=
[
'QSingleton'
,
'call_in_gui_thread'
,
'call_later'
,
'run_in_gui_thread'
,
'translate'
]
translate
=
QCoreApplication
.
translate
class
QSingleton
(
Singleton
,
type
(
QObject
)):
class
QSingleton
(
Singleton
,
type
(
QObject
)):
"""A metaclass for making Qt objects singletons"""
"""A metaclass for making Qt objects singletons"""
...
...
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