discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Text size on WX graphics text box


From: David Halls
Subject: Re: [Discuss-gnuradio] Text size on WX graphics text box
Date: Thu, 17 Nov 2016 17:57:47 +0000

​Thanks Marcus, Will,


in forms.py there is a function


"

def make_bold(widget):
font = widget.GetFont()
font.SetWeight(wx.FONTWEIGHT_BOLD)
widget.SetFont(font)"

using this format, one can create

"
def make_big(widget,FontSize):
font = widget.GetFont()
font.SetPointSize(FontSize) 
widget.SetFont(font)"

and call this from 

"class text_box(_form_base):"

e.g.

make_bold(self._text_box)
make_big(self._text_box, FontSize)​

this has the down-size that it does this to ALL text boxes. A quick and dirty fix is to do 

if label == X or label == Y:
    make_bold(self._text_box)
    make_big(self._text_box, FontSize)
    ​
​clearly a more elegant solution is close at hand.

DH



From: Discuss-gnuradio <discuss-gnuradio-bounces+address@hidden> on behalf of Will Thompson <address@hidden>
Sent: 15 November 2016 17:02
To: GNURadio Discussion List
Subject: [Discuss-gnuradio] Text size on WX graphics text box
 

Hi All.

I know GNU radio has moved to QT graphics, however, we need to increase the text size on a WX GUI text box element.

Is this possible to do, and if so, how?

 

Any help will be greatly appreciated.

 

Kind regards

Will




NOTE: The information in this email and any attachments may be confidential and/or legally privileged. This message may be read, copied and used only by the intended recipient. If you are not the intended recipient, please destroy this message, delete any copies held on your system and notify the sender immediately.

Toshiba Research Europe Limited, registered in England and Wales (2519556). Registered Office 208 Cambridge Science Park, Milton Road, Cambridge CB4 0GZ, England. Web: www.toshiba.eu/research/trl




This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit http://www.mimecast.com



NOTE: The information in this email and any attachments may be confidential and/or legally privileged. This message may be read, copied and used only by the intended recipient. If you are not the intended recipient, please destroy this message, delete any copies held on your system and notify the sender immediately.

Toshiba Research Europe Limited, registered in England and Wales (2519556). Registered Office 208 Cambridge Science Park, Milton Road, Cambridge CB4 0GZ, England. Web: www.toshiba.eu/research/trl




This email has been scanned for email related threats and delivered safely by Mimecast.
For more information please visit http://www.mimecast.com

reply via email to

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