Minor adjustments to ui and packing function

Signed-off-by: Jacki <jacki@thejackimonster.de>
This commit is contained in:
Jacki 2024-09-13 22:46:19 +02:00
parent 7e3ba81481
commit 18b66d5f78
No known key found for this signature in database
GPG key ID: B404184796354C5E
6 changed files with 40 additions and 14 deletions

View file

@ -1,6 +1,7 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import gi
gi.require_version('Gdk', '3.0')
@ -47,7 +48,8 @@ def packViewIntoSlot(slot, view_cls, data=None):
view = profileTime(view_cls)
else:
view = profileTime(view_cls, data)
except Exception:
except Exception as e:
print(str(e), file=sys.stderr)
return None
if view.widget is None:

View file

@ -104,6 +104,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<property name="wide-handle">True</property>
<child>
<object class="GtkBox">
<property name="width-request">200</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
@ -156,7 +157,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
</attributes>
</child>
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -200,7 +203,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
</attributes>
</child>
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -244,7 +249,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
</attributes>
</child>
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -347,6 +354,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<object class="GtkNotebook" id="character_notebook">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<child>
<!-- n-columns=2 n-rows=8 -->
<object class="GtkGrid">

View file

@ -378,6 +378,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<object class="GtkStack" id="view_stack">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="hexpand">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>

View file

@ -112,6 +112,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<property name="wide-handle">True</property>
<child>
<object class="GtkBox">
<property name="width-request">200</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
@ -141,7 +142,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<child>
<object class="GtkTreeViewColumn">
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -180,7 +183,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<child>
<object class="GtkTreeViewColumn">
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -219,7 +224,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<child>
<object class="GtkTreeViewColumn">
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -243,10 +250,8 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<object class="GtkBox">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-start">8</property>
<property name="margin-end">8</property>
<property name="margin-top">8</property>
<property name="margin-bottom">8</property>
<property name="hexpand">True</property>
<property name="border-width">8</property>
<property name="orientation">vertical</property>
<property name="spacing">8</property>
<child>

View file

@ -112,6 +112,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<property name="wide-handle">True</property>
<child>
<object class="GtkBox">
<property name="width-request">200</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
@ -158,7 +159,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<child>
<object class="GtkTreeViewColumn">
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -196,7 +199,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<child>
<object class="GtkTreeViewColumn">
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -234,7 +239,9 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<child>
<object class="GtkTreeViewColumn">
<child>
<object class="GtkCellRendererText"/>
<object class="GtkCellRendererText">
<property name="ellipsize">end</property>
</object>
<attributes>
<attribute name="text">1</attribute>
</attributes>
@ -337,6 +344,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<object class="GtkNotebook" id="plot_notebook">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<child>
<!-- n-columns=2 n-rows=5 -->
<object class="GtkGrid">

View file

@ -56,6 +56,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<property name="wide-handle">True</property>
<child>
<object class="GtkBox">
<property name="width-request">200</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="orientation">vertical</property>
@ -182,6 +183,7 @@ along with Manuskript. If not, see <http://www.gnu.org/licenses/>.
<object class="GtkNotebook" id="world_notebook">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>