[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnuradio-discuss
Subject:    Re: [Discuss-gnuradio] AttributeError: 'Block' object has no attribute 'horizontal_label'
From:       Tom Rondeau <tom () trondeau ! com>
Date:       2013-02-28 14:12:50
Message-ID: CA+SzT6hRJZQiuzTmVRxRz4DcKobnzr=r69LVLTyKrPoV_wEhsQ () mail ! gmail ! com
[Download RAW message or body]

On Thu, Feb 28, 2013 at 2:52 AM, Omer Omer <omer9994@yahoo.com> wrote:

> when i run my own block in gnuradio-companion square_ff ,the following
> error i get
>

Omer,

Can you run simple programs in GRC that don't use your square_ff? Just
create a signal source -> throttle -> wxgui sink program and verify that
works for you. This looks like a problem in GRC like you're missing
something and not specific to your new block.

Tom




> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py",
> line 307, in _handle_action
>     self.get_flow_graph().update()
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 312, in update
>     self.create_labels()
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Element.py", line
> 64, in create_labels
>     for child in self.get_children(): child.create_labels()
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 134, in create_labels
>     markups = [param.get_markup() for param in self.get_params() if
> param.get_hide() not in ('all', 'part')]
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py", line
> 209, in get_hide
>     lambda p: ' '.join([p._type, p._nports]),
> self.get_parent().get_ports())
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py", line
> 209, in <lambda>
>     lambda p: ' '.join([p._type, p._nports]),
> self.get_parent().get_ports())
> TypeError: sequence item 0: expected string, instance found
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> Traceback (most recent call last):
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py",
> line 132, in _handle_window_expose
>     self._flow_graph.draw(gc, self._pixmap)
>   File
> "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py",
> line 281, in draw
>     element.draw(gc, window)
>   File "/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py",
> line 185, in draw
>     window.draw_drawable(gc, self.horizontal_label, 0, 0,
> x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)
> AttributeError: 'Block' object has no attribute 'horizontal_label'
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>

[Attachment #3 (text/html)]

<div dir="ltr">On Thu, Feb 28, 2013 at 2:52 AM, Omer Omer <span dir="ltr">&lt;<a \
href="mailto:omer9994@yahoo.com" target="_blank">omer9994@yahoo.com</a>&gt;</span> \
wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" \
border="0"><tbody><tr><td valign="top" style="font:inherit">when i run my own block \
in gnuradio-companion square_ff ,the following error i get <br>

</td></tr></tbody></table></blockquote><div><br></div><div style>Omer,</div><div \
style><br></div><div style>Can you run simple programs in GRC that don&#39;t use your \
square_ff? Just create a signal source -&gt; throttle -&gt; wxgui sink program and \
verify that works for you. This looks like a problem in GRC like you&#39;re missing \
something and not specific to your new block.</div>

<div style><br></div><div style>Tom</div><div style><br></div><div><br></div><div> \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><table cellspacing="0" cellpadding="0" border="0">

<tbody><tr><td valign="top" style="font:inherit">Traceback (most recent call \
last):<br>  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py&quot;, \
line 307, in _handle_action<br>    self.get_flow_graph().update()<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 312, in update<br>    self.create_labels()<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Element.py&quot;, line \
64, in create_labels<br>

    for child in self.get_children(): child.create_labels()<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
134, in create_labels<br>    markups = [param.get_markup() for param in \
self.get_params() if param.get_hide() not in (&#39;all&#39;,  &#39;part&#39;)]<br>  \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py&quot;, \
line 209, in get_hide<br>    lambda p: &#39; &#39;.join([p._type, p._nports]), \
self.get_parent().get_ports())<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py&quot;, \
line 209, in &lt;lambda&gt;<br>    lambda p: &#39; &#39;.join([p._type, p._nports]), \
self.get_parent().get_ports())<br>TypeError: sequence item 0: expected string, \
instance found<br>

Traceback (most recent call last):<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>

    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in  draw<br>    window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: \
&#39;Block&#39; object has no attribute &#39;horizontal_label&#39;<br>Traceback (most \
recent call last):<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>

    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>    window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>

AttributeError: &#39;Block&#39; object has no attribute \
&#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>  File  \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>

    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>    window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>

AttributeError: &#39;Block&#39; object has no attribute \
&#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>

    self._flow_graph.draw(gc, self._pixmap)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in  draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>    window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>

AttributeError: &#39;Block&#39; object has no attribute \
&#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>

    self._flow_graph.draw(gc, self._pixmap)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>

    window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING,
 y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: &#39;Block&#39; object \
has no attribute &#39;horizontal_label&#39;<br>Traceback (most recent call last):<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>

    self._flow_graph.draw(gc, self._pixmap)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>

    window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, \
y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: &#39;Block&#39; object has \
no attribute &#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in  _handle_window_expose<br>    self._flow_graph.draw(gc, \
self._pixmap)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>

    window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, \
y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: &#39;Block&#39; object has \
no attribute &#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>

    element.draw(gc, window)<br>  File
 &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>    window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>

AttributeError: &#39;Block&#39; object has no attribute \
&#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>

    self._flow_graph.draw(gc, self._pixmap)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>

    window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, \
y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: &#39;Block&#39; object has \
no attribute  &#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>  \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>

    window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, \
y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: &#39;Block&#39; object has \
no attribute &#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File  &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>

    window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, \
y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: &#39;Block&#39; object has \
no attribute &#39;horizontal_label&#39;<br>Traceback (most recent call last):<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>

    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>     window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>AttributeError: \
&#39;Block&#39; object has no attribute &#39;horizontal_label&#39;<br>Traceback (most \
recent call last):<br>

  File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py&quot;, \
line 132, in _handle_window_expose<br>    self._flow_graph.draw(gc, self._pixmap)<br> \
File &quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py&quot;, \
line 281, in draw<br>

    element.draw(gc, window)<br>  File \
&quot;/usr/local/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py&quot;, line \
185, in draw<br>    window.draw_drawable(gc, self.horizontal_label, 0, 0, \
x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1)<br>

AttributeError: &#39;Block&#39; object has no attribute \
&#39;horizontal_label&#39;</td></tr></tbody></table><br>_______________________________________________<br>
 Discuss-gnuradio mailing list<br>
<a href="mailto:Discuss-gnuradio@gnu.org">Discuss-gnuradio@gnu.org</a><br>
<a href="https://lists.gnu.org/mailman/listinfo/discuss-gnuradio" \
target="_blank">https://lists.gnu.org/mailman/listinfo/discuss-gnuradio</a><br> \
<br></blockquote></div><br></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic