repo.or.cz
/
python-gnt.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update to the current non-blocking stuff. Also, allow selecting files from a torrent...
[python-gnt.git]
/
example
/
xmms
/
treerow.py
blob
c78ef8309c131fa4ded34fd2d81cffab8e5d26fe
1
import
gobject
2
import
gnt
3
4
class
Row
(
gobject
.
GObject
):
5
def
__init__
(
self
):
6
self
.__
gobject
_
init
__
()
7
self
.
tagged
=
False
8
9
def
__del__
(
self
):
10
pass
11
12
def
toggle_tag
(
self
):
13
self
.
tagged
=
not
self
.
tagged
14
15
def
get_row_flag
(
self
):
16
if
self
.
tagged
:
17
return
gnt
.
TEXT_FLAG_BOLD
18
return
gnt
.
TEXT_FLAG_NORMAL
19
20
gobject
.
type_register
(
Row
)
21