[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] grc sorting block categories
From: |
Ralph A. Schmid, dk5ras |
Subject: |
Re: [Discuss-gnuradio] grc sorting block categories |
Date: |
Thu, 4 Apr 2013 07:37:51 +0200 |
Hi,
I would _love_ this in the release!
Ralph.
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On Behalf Of
> Gregory Warnes
> Sent: Thursday, 04 April, 2013 01:55
> To: address@hidden
> Subject: [Discuss-gnuradio] grc sorting block categories
>
> Hi,
>
> I've been using GnuRadio Companion for some prototyping over the last
> couple of weeks and am finding it very helpful.
>
> Below is a (tiny) patch to enable sorting the block tree clicking on the
column
> heading ('Blocks'):
>
>
> diff --git a/grc/gui/BlockTreeWindow.py b/grc/gui/BlockTreeWindow.py
> index 62afb62..2b37966 100644
> --- a/grc/gui/BlockTreeWindow.py
> +++ b/grc/gui/BlockTreeWindow.py
> @@ -70,6 +70,8 @@ class BlockTreeWindow(gtk.VBox):
> #try to enable the tooltips (available in pygtk 2.12 and above)
> try: self.treeview.set_tooltip_column(DOC_INDEX)
> except: pass
> + #setup sort order
> + column.set_sort_column_id(0)
> #setup drag and drop
> self.treeview.enable_model_drag_source(gtk.gdk.BUTTON1_MASK,
> DND_TARGETS, gtk.gdk.ACTION_COPY)
> self.treeview.connect('drag-data-get', self._handle_drag_get_data)
>
> I hope this is helpful.
>
> -Greg
>
>
> --
> "Whereas true religion and good morals are the only solid foundations of
> public liberty and happiness . . . it is hereby earnestly recommended to
the
> several States to take the most effectual measures for the encouragement
> thereof." Continental Congress, 1778
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio