[Avida-cvs] [avida-svn] r798 - branches/developers/avida-edward/source/python/AvidaGui2
baerb@myxo.css.msu.edu
baerb at myxo.css.msu.edu
Wed Jul 5 07:16:11 PDT 2006
Author: baerb
Date: 2006-07-05 10:16:11 -0400 (Wed, 05 Jul 2006)
New Revision: 798
Modified:
branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py
branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui
Log:
Small change to improve the look of the Time (Updates) section of the petri-dish
Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py 2006-07-04 21:25:35 UTC (rev 797)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishCtrl.py 2006-07-05 14:16:11 UTC (rev 798)
@@ -182,7 +182,7 @@
if self.m_avida: stats = self.m_avida.m_population.GetStats()
if stats: update = stats.GetUpdate()
if update:
- self.m_update_label.setText(QString("%1").arg(update))
+ self.m_update_label.setText("Time (Updates): " + str(QString("%1").arg(update)))
# BDB -- Pause at certain update hack
Modified: branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui
===================================================================
--- branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui 2006-07-04 21:25:35 UTC (rev 797)
+++ branches/developers/avida-edward/source/python/AvidaGui2/pyOnePop_PetriDishView.ui 2006-07-05 14:16:11 UTC (rev 798)
@@ -248,7 +248,7 @@
</property>
<widget class="QLabel">
<property name="name">
- <cstring>textLabel11</cstring>
+ <cstring>m_update_label</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@@ -258,32 +258,41 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ <property name="font">
+ <font>
+ <pointsize>10</pointsize>
+ </font>
+ </property>
<property name="text">
- <string><font size="-1"><p align="center">Time (updates):</p></font></string>
+ <string>Time (Updates): -</string>
</property>
+ <property name="textFormat">
+ <enum>AutoText</enum>
+ </property>
+ <property name="alignment">
+ <set>WordBreak|AlignVCenter|AlignLeft</set>
+ </property>
<property name="toolTip" stdset="0">
<string>Updates is the basic unit of time in Avida-ED</string>
</property>
</widget>
- <widget class="QLabel">
+ <spacer>
<property name="name">
- <cstring>m_update_label</cstring>
+ <cstring>UpdateSpacer</cstring>
</property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>0</hsizetype>
- <vsizetype>1</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
+ <property name="orientation">
+ <enum>Horizontal</enum>
</property>
- <property name="text">
- <string><font size="-1">-</font></string>
+ <property name="sizeType">
+ <enum>Fixed</enum>
</property>
- <property name="toolTip" stdset="0">
- <string>Updates is the basic unit of time in Avida-ED</string>
+ <property name="sizeHint">
+ <size>
+ <width>6</width>
+ <height>6</height>
+ </size>
</property>
- </widget>
+ </spacer>
<widget class="QComboBox">
<item>
<property name="text">
More information about the Avida-cvs
mailing list