summaryrefslogtreecommitdiff
path: root/grc/gui/Block.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/gui/Block.py')
-rw-r--r--grc/gui/Block.py26
1 files changed, 12 insertions, 14 deletions
diff --git a/grc/gui/Block.py b/grc/gui/Block.py
index f961c2281e..aab1cab5a6 100644
--- a/grc/gui/Block.py
+++ b/grc/gui/Block.py
@@ -18,24 +18,22 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
"""
import pygtk
-
-import Actions
-import Colors
-import Utils
-from Constants import (
- BLOCK_LABEL_PADDING, PORT_SPACING, PORT_SEPARATION, LABEL_SEPARATION,
- PORT_BORDER_SEPARATION, POSSIBLE_ROTATIONS, BLOCK_FONT, PARAM_FONT
-)
-from Constants import BORDER_PROXIMITY_SENSITIVITY
-from Element import Element
-from grc.python.base import odict
-from .. python.Param import num_to_str
-
pygtk.require('2.0')
import gtk
import pango
-from ..python.Block import Block as _Block
+from . import Actions, Colors, Utils
+
+from .Constants import (
+ BLOCK_LABEL_PADDING, PORT_SPACING, PORT_SEPARATION, LABEL_SEPARATION,
+ PORT_BORDER_SEPARATION, POSSIBLE_ROTATIONS, BLOCK_FONT, PARAM_FONT,
+ BORDER_PROXIMITY_SENSITIVITY
+)
+from . Element import Element
+from ..model.base import odict
+from ..model.Param import num_to_str
+
+from ..model.Block import Block as _Block
BLOCK_MARKUP_TMPL="""\
#set $foreground = $block.is_valid() and 'black' or 'red'