Commit 669fffcb authored by sumpfralle's avatar sumpfralle

added a "help" link to the process pool window

enabled keyboard shortcuts for the process pool window


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@786 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent fd22cba5
......@@ -6786,7 +6786,11 @@ Any selected group of dimensions will be scaled accordingly.</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="ProcessPoolDisabledText">
<object class="GtkVBox" id="ProcessPoolDisabledBox">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="ProcessPoolDisabledLabel">
<property name="visible">True</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Multiprocessing is currently not enabled on your system.
......@@ -6795,6 +6799,23 @@ Please run PyCAM with the parameter "--enable-server" to allow remote workers to
<property name="wrap">True</property>
<property name="width_chars">60</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkLinkButton" id="ProcessPoolHelpLink">
<property name="label" translatable="yes">Read more about the Server Mode.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="has_tooltip">True</property>
<property name="relief">none</property>
<property name="xalign">0</property>
<property name="uri">http://sourceforge.net/apps/mediawiki/pycam/index.php?title=ServerMode</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
......@@ -6803,6 +6824,15 @@ Please run PyCAM with the parameter "--enable-server" to allow remote workers to
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="position">1</property>
</packing>
</child>
......
......@@ -726,6 +726,7 @@ class ProjectGui:
self.about_window.add_accel_group(self._accel_group)
self.preferences_window.add_accel_group(self._accel_group)
self.log_window.add_accel_group(self._accel_group)
self.process_pool_window.add_accel_group(self._accel_group)
# load menu data
gtk_menu_file = get_data_file_location(GTKMENU_FILE)
if gtk_menu_file is None:
......@@ -1468,7 +1469,7 @@ class ProjectGui:
new_state = action
if new_state:
is_available = pycam.Utils.threading.is_pool_available()
self.gui.get_object("ProcessPoolDisabledText").set_visible(
self.gui.get_object("ProcessPoolDisabledBox").set_visible(
not is_available)
self.gui.get_object("ProcessPoolStatisticsBox").set_visible(
is_available)
......
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