summaryrefslogtreecommitdiff
path: root/gr-wxgui/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'gr-wxgui/src/python')
-rw-r--r--gr-wxgui/src/python/term_window.py25
-rw-r--r--gr-wxgui/src/python/termsink.py7
2 files changed, 28 insertions, 4 deletions
diff --git a/gr-wxgui/src/python/term_window.py b/gr-wxgui/src/python/term_window.py
index cae19c07a..8658e54a6 100644
--- a/gr-wxgui/src/python/term_window.py
+++ b/gr-wxgui/src/python/term_window.py
@@ -22,7 +22,28 @@
import wx
import pubsub
+DEFAULT_WIN_SIZE = (600, 300)
+
class term_window(wx.Panel, pubsub.pubsub):
- def __init__(self, parent):
+ def __init__(self,
+ parent,
+ size,
+ ):
+
pubsub.pubsub.__init__(self)
- wx.Panel.__init__(self, parent, style=wx.SIMPLE_BORDER)
+ wx.Panel.__init__(self,
+ parent,
+ size=size,
+ style=wx.SIMPLE_BORDER,
+ )
+
+ self.text_ctrl = wx.TextCtrl(self,
+ wx.ID_ANY,
+ value="BOO",
+ size=size,
+ style=wx.TE_MULTILINE|wx.TE_READONLY,
+ )
+
+ main_sizer = wx.BoxSizer(wx.VERTICAL)
+ main_sizer.Add(self.text_ctrl, 1, wx.EXPAND)
+ self.SetSizerAndFit(main_sizer)
diff --git a/gr-wxgui/src/python/termsink.py b/gr-wxgui/src/python/termsink.py
index 92aba47f4..2c583b115 100644
--- a/gr-wxgui/src/python/termsink.py
+++ b/gr-wxgui/src/python/termsink.py
@@ -24,7 +24,10 @@ import common
from gnuradio import gr
class termsink(gr.hier_block2, common.wxgui_hb):
- def __init__(self,parent):
+ def __init__(self,
+ parent,
+ ):
+
gr.hier_block2.__init__(
self,
"termsink",
@@ -34,5 +37,5 @@ class termsink(gr.hier_block2, common.wxgui_hb):
self.win = term_window.term_window(
parent=parent,
+ size=term_window.DEFAULT_WIN_SIZE,
)
-