Change torrent list mode to compressed
This commit is contained in:
parent
eec1666352
commit
cfc133afbd
|
@ -34,14 +34,15 @@ try:
|
|||
Box, Label, Button, ELM_GENLIST_ITEM_FIELD_TEXT, \
|
||||
ELM_GENLIST_ITEM_FIELD_CONTENT, InnerWindow, Frame, \
|
||||
Fileselector, Entry, Panel, ELM_PANEL_ORIENT_BOTTOM, \
|
||||
ELM_OBJECT_SELECT_MODE_NONE, Table, Separator, Menu, Configuration
|
||||
ELM_OBJECT_SELECT_MODE_NONE, Table, Separator, Menu, Configuration, \
|
||||
ELM_LIST_COMPRESS
|
||||
except ImportError:
|
||||
from efl.evas import EVAS_ASPECT_CONTROL_VERTICAL, Rectangle
|
||||
from efl.ecore import Timer
|
||||
from efl import elementary as elm
|
||||
from efl.elementary.genlist import Genlist, GenlistItemClass, \
|
||||
ELM_GENLIST_ITEM_FIELD_TEXT, ELM_GENLIST_ITEM_FIELD_CONTENT, \
|
||||
ELM_OBJECT_SELECT_MODE_NONE
|
||||
ELM_OBJECT_SELECT_MODE_NONE, ELM_LIST_COMPRESS
|
||||
from efl.elementary.window import StandardWindow
|
||||
from efl.elementary.icon import Icon
|
||||
from efl.elementary.box import Box
|
||||
|
@ -89,11 +90,12 @@ class MainInterface(object):
|
|||
#
|
||||
# Homogeneous mode triggers it
|
||||
#
|
||||
tlist.select_mode_set(ELM_OBJECT_SELECT_MODE_NONE)
|
||||
tlist.select_mode = ELM_OBJECT_SELECT_MODE_NONE
|
||||
tlist.mode = ELM_LIST_COMPRESS
|
||||
tlist.callback_activated_add(self.item_activated_cb)
|
||||
#tlist.homogeneous_set(True)
|
||||
tlist.size_hint_weight_set(1.0, 1.0)
|
||||
tlist.size_hint_align_set(-1.0, -1.0)
|
||||
tlist.size_hint_weight = 1.0, 1.0
|
||||
tlist.size_hint_align = -1.0, -1.0
|
||||
tlist.show()
|
||||
|
||||
mbox = Box(win)
|
||||
|
|
Loading…
Reference in New Issue