Commit db6cb1e9 authored by sumpfralle's avatar sumpfralle

added a status bar with the most recent message


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@585 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 2c37320f
......@@ -601,6 +601,8 @@ class ProjectGui:
location_control.get_text, location_control.set_text)
self.gui.get_object(browse_button).connect("clicked",
self._browse_external_program_location, key)
# status bar
self.status_bar = self.gui.get_object("StatusBar")
# menu bar
uimanager = gtk.UIManager()
self._accel_group = uimanager.get_accel_group()
......@@ -1212,6 +1214,8 @@ class ProjectGui:
# remove all non-ascii characters
message = "".join([char for char in message if ord(char) < 128])
self.log_model.append((timestamp, title, message))
# update the status bar
self.status_bar.push(0, message)
@gui_activity_guard
def clear_log_window(self, widget=None):
......
......@@ -4240,6 +4240,16 @@ upon interesting bugs and weird results.</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkStatusbar" id="StatusBar">
<property name="visible">True</property>
<property name="spacing">2</property>
</object>
<packing>
<property name="expand">False</property>
<property name="position">3</property>
</packing>
</child>
</object>
</child>
</object>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment