Check-in [249dac590b]
Overview
| Comment: | Introduce "New station..." menu entry. (via streamedit / non-functional on first invocation / needs custom simpler UI and implementation) |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
249dac590bd07e6537b841b6720ccbe6 |
| User & Date: | mario on 2015-11-14 21:49:29 |
| Other Links: | manifest | tags |
Context
|
2015-12-21
| ||
| 01:29 | Example config for MPD/MPC playback. check-in: f9d3057189 user: mario tags: trunk | |
|
2015-11-14
| ||
| 21:49 | Introduce "New station..." menu entry. (via streamedit / non-functional on first invocation / needs custom simpler UI and implementation) check-in: 249dac590b user: mario tags: trunk | |
| 21:47 | Fix `self.main` reference check-in: 79f29b975a user: mario tags: trunk | |
Changes
Added contrib/new_station.py version [44642fb809].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 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)
|