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

⌈⌋ ⎇ branch:  streamtuner2


Diff

Differences From Artifact [8d9a2e155e]:

To Artifact [29ba27c9de]:


29
30
31
32
33
34
35


36
37
38
39
40
41
42
import gtk
import gtk.glade
import gobject
import os.path
import copy





# simplified gtk constructors               ---------------------------------------------
class mygtk:


             
        #-- fill a treeview







>
>







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import gtk
import gtk.glade
import gobject
import os.path
import copy


def __print__(*args):
        print(" ".join([str(a) for a in args]))

# simplified gtk constructors               ---------------------------------------------
class mygtk:


             
        #-- fill a treeview
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165

                    try:
                        # add
                        ls.append(row)   # had to be adapted for real TreeStore (would require additional input for grouping/level/parents)

                    except:
                        # brute-force typecast
                        ls.append(  [ty(va) for va,ty in zip(row,vartypes)]  )

                # apply array to widget
                widget.set_model(ls)
                return ls
                
            pass








|







153
154
155
156
157
158
159
160
161
162
163
164
165
166
167

                    try:
                        # add
                        ls.append(row)   # had to be adapted for real TreeStore (would require additional input for grouping/level/parents)

                    except:
                        # brute-force typecast
                        ls.append(  [va  if ty==gtk.gdk.Pixbuf  else ty(va)   for va,ty in zip(row,vartypes)]  )

                # apply array to widget
                widget.set_model(ls)
                return ls
                
            pass