Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
5d87104e
Commit
5d87104e
authored
Sep 14, 2017
by
VIGNET Pierre
Browse files
Fix clearer typos; resize window: Insert model name
parent
ff0b0824
Changes
3
Hide whitespace changes
Inline
Side-by-side
gui/cadbiom_gui/gt_gui/chart_glade/charter.glade
View file @
5d87104e
...
...
@@ -17,7 +17,7 @@
<child>
<widget
class=
"GtkMenuItem"
id=
"menuitem2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Files
</property>
<property
name=
"label"
translatable=
"yes"
>
Model
</property>
<property
name=
"use_underline"
>
True
</property>
<child>
<widget
class=
"GtkMenu"
id=
"menu2"
>
...
...
@@ -521,7 +521,7 @@
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Narrow
</property>
<property
name=
"label"
translatable=
"yes"
>
Zoom +
</property>
<property
name=
"response_id"
>
0
</property>
</widget>
<packing>
...
...
@@ -534,7 +534,7 @@
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"label"
translatable=
"yes"
>
Enlarge
</property>
<property
name=
"label"
translatable=
"yes"
>
Zoom -
</property>
<property
name=
"response_id"
>
0
</property>
</widget>
<packing>
...
...
gui/cadbiom_gui/gt_gui/charter.py
View file @
5d87104e
...
...
@@ -487,7 +487,7 @@ class Charter(object):
create a new charts when you click on new
"""
# open an independant gtk.Entry for asking for the name
die
=
DialogEntry
(
"
M
odel name"
)
die
=
DialogEntry
(
"
Insert a m
odel name"
)
die
.
okb
.
connect
(
"clicked"
,
self
.
ok_new_text
,
die
)
die
.
cancel
.
connect
(
"clicked"
,
self
.
cancel
,
die
)
die
.
run
()
...
...
@@ -537,7 +537,7 @@ class Charter(object):
"""
open a window to search xml file
"""
fch
=
FileChooser
(
"Import
from xm
l"
,
"bcx files"
,
"*.bcx"
)
fch
=
FileChooser
(
"Import
Cadbiom mode
l"
,
"bcx files"
,
"*.bcx"
)
fch
.
do_action
(
self
.
import_from_xml_file
)
def
import_from_xml_file
(
self
,
ffile
):
...
...
gui/cadbiom_gui/gt_gui/utils/warn.py
View file @
5d87104e
...
...
@@ -166,6 +166,7 @@ class DialogEntry(gtk.Dialog):
None
,
gtk
.
DIALOG_MODAL
|
gtk
.
DIALOG_DESTROY_WITH_PARENT
)
self
.
set_default_size
(
350
,
75
)
self
.
entry
=
gtk
.
Entry
()
self
.
vbox
.
pack_start
(
self
.
entry
,
True
,
True
,
0
)
self
.
entry
.
show
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment