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
e0f50b8d
Commit
e0f50b8d
authored
Jul 19, 2010
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves Status class from sessions to blink/widgets/labels.py
parent
1a327b59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
sessions.py
blink/sessions.py
+1
-7
labels.py
blink/widgets/labels.py
+8
-1
No files found.
blink/sessions.py
View file @
e0f50b8d
...
@@ -35,13 +35,7 @@ from blink.configuration.datatypes import DefaultPath
...
@@ -35,13 +35,7 @@ from blink.configuration.datatypes import DefaultPath
from
blink.resources
import
Resources
from
blink.resources
import
Resources
from
blink.util
import
call_later
,
run_in_gui_thread
from
blink.util
import
call_later
,
run_in_gui_thread
from
blink.widgets.buttons
import
LeftSegment
,
MiddleSegment
,
RightSegment
,
SwitchViewButton
from
blink.widgets.buttons
import
LeftSegment
,
MiddleSegment
,
RightSegment
,
SwitchViewButton
from
blink.widgets.labels
import
Status
class
Status
(
unicode
):
def
__new__
(
cls
,
value
,
color
=
'black'
):
instance
=
unicode
.
__new__
(
cls
,
value
)
instance
.
color
=
color
return
instance
class
SessionItem
(
QObject
):
class
SessionItem
(
QObject
):
...
...
blink/widgets/labels.py
View file @
e0f50b8d
# Copyright (c) 2010 AG Projects. See LICENSE for details.
# Copyright (c) 2010 AG Projects. See LICENSE for details.
#
#
__all__
=
[
'DurationLabel'
,
'IconSelector'
,
'LatencyLabel'
,
'PacketLossLabel'
,
'StatusLabel'
,
'StreamInfoLabel'
]
__all__
=
[
'DurationLabel'
,
'IconSelector'
,
'LatencyLabel'
,
'PacketLossLabel'
,
'Status
'
,
'Status
Label'
,
'StreamInfoLabel'
]
import
os
import
os
from
datetime
import
timedelta
from
datetime
import
timedelta
...
@@ -152,6 +152,13 @@ class PacketLossLabel(QLabel):
...
@@ -152,6 +152,13 @@ class PacketLossLabel(QLabel):
del
_get_value
,
_set_value
del
_get_value
,
_set_value
class
Status
(
unicode
):
def
__new__
(
cls
,
value
,
color
=
'black'
):
instance
=
unicode
.
__new__
(
cls
,
value
)
instance
.
color
=
color
return
instance
class
StatusLabel
(
QLabel
):
class
StatusLabel
(
QLabel
):
def
__init__
(
self
,
parent
=
None
):
def
__init__
(
self
,
parent
=
None
):
super
(
StatusLabel
,
self
)
.
__init__
(
parent
)
super
(
StatusLabel
,
self
)
.
__init__
(
parent
)
...
...
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