[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9206 - gnuradio/branches/features/experimental-gui/pl
From: |
jblum |
Subject: |
[Commit-gnuradio] r9206 - gnuradio/branches/features/experimental-gui/plotter |
Date: |
Thu, 7 Aug 2008 15:15:38 -0600 (MDT) |
Author: jblum
Date: 2008-08-07 15:15:37 -0600 (Thu, 07 Aug 2008)
New Revision: 9206
Modified:
gnuradio/branches/features/experimental-gui/plotter/gltext.py
gnuradio/branches/features/experimental-gui/plotter/plotter_base.py
Log:
gltext bold param
Modified: gnuradio/branches/features/experimental-gui/plotter/gltext.py
===================================================================
--- gnuradio/branches/features/experimental-gui/plotter/gltext.py
2008-08-07 20:57:15 UTC (rev 9205)
+++ gnuradio/branches/features/experimental-gui/plotter/gltext.py
2008-08-07 21:15:37 UTC (rev 9206)
@@ -307,7 +307,8 @@
font = None,
font_size = 8,
foreground = wx.BLACK,
- centered = False):
+ centered = False,
+ bold = False):
"""
text (string) - displayed text
font (wx.Font) - if None, system default font will be
used with font_size
@@ -332,7 +333,9 @@
else:
#save it
self._font = font
-
+
+ if bold: self._font.SetWeight(wx.FONTWEIGHT_BOLD)
+
#Bind us to our texture
self._initText()
Modified: gnuradio/branches/features/experimental-gui/plotter/plotter_base.py
===================================================================
--- gnuradio/branches/features/experimental-gui/plotter/plotter_base.py
2008-08-07 20:57:15 UTC (rev 9205)
+++ gnuradio/branches/features/experimental-gui/plotter/plotter_base.py
2008-08-07 21:15:37 UTC (rev 9206)
@@ -222,19 +222,15 @@
##################################################
# Draw Title
##################################################
- font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
- font.SetWeight(wx.FONTWEIGHT_BOLD)
#draw x units
- txt = gltext.Text(self.title, font=font,
font_size=TITLE_TEXT_FONT_SIZE, centered=True)
+ txt = gltext.Text(self.title, bold=True,
font_size=TITLE_TEXT_FONT_SIZE, centered=True)
txt.draw_text(wx.Point(self.width/2.0, .5*self.padding_top))
##################################################
# Draw Labels
##################################################
- font = wx.SystemSettings.GetFont(wx.SYS_DEFAULT_GUI_FONT)
- font.SetWeight(wx.FONTWEIGHT_BOLD)
#draw x labels
x_label_str = self.x_units and "%s (%s)"%(self.x_label,
self.x_units) or self.x_label
- txt = gltext.Text(x_label_str, font=font,
font_size=UNITS_TEXT_FONT_SIZE, centered=True)
+ txt = gltext.Text(x_label_str, bold=True,
font_size=UNITS_TEXT_FONT_SIZE, centered=True)
txt.draw_text(wx.Point(
(self.width-self.padding_left-self.padding_right)/2.0 + self.padding_left,
self.height-.25*self.padding_bottom,
@@ -242,7 +238,7 @@
)
#draw y labels
y_label_str = self.y_units and "%s (%s)"%(self.y_label,
self.y_units) or self.y_label
- txt = gltext.Text(y_label_str, font=font,
font_size=UNITS_TEXT_FONT_SIZE, centered=True)
+ txt = gltext.Text(y_label_str, bold=True,
font_size=UNITS_TEXT_FONT_SIZE, centered=True)
txt.draw_text(wx.Point(
.25*self.padding_left,
(self.height-self.padding_top-self.padding_bottom)/2.0 + self.padding_top,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9206 - gnuradio/branches/features/experimental-gui/plotter,
jblum <=