discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] AttributeError: 'Block' object has no attribute 'hori


From: Omer Omer
Subject: [Discuss-gnuradio] AttributeError: 'Block' object has no attribute 'horizontal_label'
Date: Wed, 27 Feb 2013 23:52:11 -0800 (PST)

when i run my own block in gnuradio-companion square_ff ,the following error i get
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'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]