Internet radio browser GUI for music/video streams from various directory services.

⌈⌋ ⎇ branch:  streamtuner2


Changes On Branch new_station

Changes In Branch new_station Excluding Merge-Ins

This is equivalent to a diff from eb226c6d4b to a1d8b8ef7b

2016-10-31
21:49
Add value unserialization for plugin config `type: array/list` using format "1,2,3|4,5,6|..." and `dict` type with "1 => 2, 3 => 4, ..." check-in: 1efa95be56 user: mario tags: trunk
16:17
Build `new_station` dialog manually. Leaf check-in: a1d8b8ef7b user: mario tags: new_station
16:16
Document house-mixes plugin. check-in: eb226c6d4b user: mario tags: trunk
16:15
Add link to RadioDroid. check-in: 418f9d2513 user: mario tags: trunk

Modified contrib/new_station.py from [44642fb809] to [5deb8cb3d6].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

22
23
24
25
26
27
28

29








30




# encoding: utf-8
# api: streamtuner2
# title: New station
# description: Adds menu entry to add new station
# version: 0.1
# type: feature
# category: ui
# config: -
# priority: optional
# 
# Is a trivial wrapper around streamedit, which hooks into the
# main menu as "New station..."
#

from uikit import *

# 
class new_station (object):
    plugin = "new_station"
    meta = plugin_meta()
    parent = None


    # show stream data editing dialog
    def __init__(self, parent):
        self.parent = parent
        uikit.add_menu([parent.streammenu], "New station…", self.new, insert=3)
  
    # add a new list entry, update window

    def new(self, *w):








        self.parent.streamedit.new(None)








|
















>






<
>

>
>
>
>
>
>
>
>
|
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# encoding: utf-8
# api: streamtuner2
# title: New station
# description: Adds menu entry to add new station
# version: 0.2
# type: feature
# category: ui
# config: -
# priority: optional
# 
# Is a trivial wrapper around streamedit, which hooks into the
# main menu as "New station..."
#

from uikit import *

# 
class new_station (object):
    plugin = "new_station"
    meta = plugin_meta()
    parent = None
    win = None

    # show stream data editing dialog
    def __init__(self, parent):
        self.parent = parent
        uikit.add_menu([parent.streammenu], "New station…", self.new, insert=3)
  

    #
    def new(self, *w):
        self.win = win = gtk.Dialog();
        t = gtk.Table(2, 3)
        win.pack_start(t)
        win.show()
        

    #
    def cancel(self, *w):
        self.parent.win_newstation.hide()

    #
    def ok(self, *w):
        self.parent.win_newstation.hide()