Check-in [0a107286ea]
Overview
Comment: | transition from libglade to gtk.Builder, ui file might be still borked (gtk-builder-convert drops menu, glade-gtk2 3.8.0 is the last to work, but gives massive warnings) |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0a107286ea2d82e249aad072afb63b93 |
User & Date: | mario on 2012-01-09 21:13:45 |
Other Links: | manifest | tags |
Context
2012-01-10
| ||
00:09 | Updated win_config dialog, made it resizable. mini-help is disabled (tooltip became tooltip_text in preparation for Gtk3), glade-3.10 killed the "theme" dropdown. check-in: d5904985a0 user: mario tags: trunk | |
2012-01-09
| ||
21:13 | transition from libglade to gtk.Builder, ui file might be still borked (gtk-builder-convert drops menu, glade-gtk2 3.8.0 is the last to work, but gives massive warnings) check-in: 0a107286ea user: mario tags: trunk | |
03:47 | distribution files check-in: d690b96796 user: mario tags: trunk | |
Changes
Modified st2.py from [70adb4776e] to [548fb7e362].
1 2 3 4 5 6 7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | - + | #!/usr/bin/env python # encoding: UTF-8 # api: python # type: application # title: streamtuner2 # description: directory browser for internet radio / audio streams # depends: gtk, pygtk, xml.dom.minidom, threading, lxml, pyquery, kronos |
︙ | |||
111 112 113 114 115 116 117 | 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | - + + - + + | #from pq import pq # this represents the main window # and also contains most application behaviour main = None |
︙ | |||
168 169 170 171 172 173 174 | 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | - + | self.current_channel = self.current_channel_gtk() try: self.channel().first_show() except: print("channel .first_show() initialization error") # bind gtk/glade event names to functions gui_startup(0.95) |
︙ | |||
236 237 238 239 240 241 242 | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | - + - + | #-- Shortcut fo glade.get_widget() # allows access to widgets as direct attributes instead of using .get_widget() # also looks in self.channels[] for the named channel plugins def __getattr__(self, name): if (self.channels.has_key(name)): return self.channels[name] # like self.shoutcast else: |
︙ | |||
515 516 517 518 519 520 521 | 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 | - + | # auxiliary window: about dialog class AboutStreamtuner2: # about us def __init__(self): a = gtk.AboutDialog() |
︙ |
Added st2.xml version [a37da700d5].