Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ideascube
ARCHIVED Kiwix Hotspot
Commits
60a0abfc
Commit
60a0abfc
authored
Jul 21, 2017
by
thiolliere
Browse files
menubar about dialog
parent
736a211f
Changes
7
Hide whitespace changes
Inline
Side-by-side
pibox-installer-linux.spec
View file @
60a0abfc
...
...
@@ -8,6 +8,7 @@ a = Analysis(['pibox-installer/__main__.py'],
binaries
=
[(
'qemu-system-arm'
,
'.'
),
(
'qemu-img'
,
'.'
)],
datas
=
[(
'ui.glade'
,
'.'
),
(
'pibox_ideascube_conf.py'
,
'.'
),
(
'pibox-installer-logo.png'
,
'.'
),
(
'pibox-installer-vexpress-boot'
,
'pibox-installer-vexpress-boot'
)],
hiddenimports
=
[],
hookspath
=
[
'additional-hooks'
],
...
...
pibox-installer-macos.spec
View file @
60a0abfc
...
...
@@ -11,6 +11,7 @@ a = Analysis(['pibox-installer/__main__.py'],
binaries
=
[(
"qemu/"
+
file
,
'.'
)
for
file
in
files
],
datas
=
[(
'ui.glade'
,
'.'
),
(
'pibox_ideascube_conf.py'
,
'.'
),
(
'pibox-installer-logo.png'
,
'.'
),
(
'pibox-installer-vexpress-boot'
,
'pibox-installer-vexpress-boot'
)],
hiddenimports
=
[],
hookspath
=
[
'additional-hooks'
],
...
...
pibox-installer-win32.spec
View file @
60a0abfc
...
...
@@ -71,6 +71,7 @@ a = Analysis(['pibox-installer/__main__.py'],
(
'C:\Program Files\qemu\libpixman-1-0.dll'
,
'qemu'
)],
datas
=
[(
'ui.glade'
,
'.'
),
(
'pibox_ideascube_conf.py'
,
'.'
),
(
'pibox-installer-logo.png'
,
'.'
),
(
'pibox-installer-vexpress-boot'
,
'pibox-installer-vexpress-boot'
)],
hiddenimports
=
[],
hookspath
=
[
'additional-hooks'
],
...
...
pibox-installer-win64.spec
View file @
60a0abfc
...
...
@@ -71,6 +71,7 @@ a = Analysis(['pibox-installer/__main__.py'],
(
'C:\Program Files\qemu\libpixman-1-0.dll'
,
'qemu'
)],
datas
=
[(
'ui.glade'
,
'.'
),
(
'pibox_ideascube_conf.py'
,
'.'
),
(
'pibox-installer-logo.png'
,
'.'
),
(
'pibox-installer-vexpress-boot'
,
'pibox-installer-vexpress-boot'
)],
hiddenimports
=
[],
hookspath
=
[
'additional-hooks'
],
...
...
pibox-installer/data.py
View file @
60a0abfc
...
...
@@ -12,3 +12,5 @@ vexpress_boot_kernel = os.path.join(data_dir, _vexpress_boot_dir, "zImage")
vexpress_boot_dtb
=
os
.
path
.
join
(
data_dir
,
_vexpress_boot_dir
,
"vexpress-v2p-ca9.dtb"
)
pibox_ideascube_conf
=
os
.
path
.
join
(
data_dir
,
"pibox_ideascube_conf.py"
)
pibox_logo
=
os
.
path
.
join
(
data_dir
,
"pibox-installer-logo.png"
)
pibox-installer/gui.py
View file @
60a0abfc
...
...
@@ -100,6 +100,7 @@ class Application:
# menu bar
self
.
component
.
menu_quit
.
connect
(
"activate"
,
lambda
widget
:
self
.
component
.
window
.
close
())
self
.
component
.
menu_about
.
connect
(
"activate"
,
self
.
activate_menu_about
)
# wifi password
self
.
component
.
wifi_password_switch
.
connect
(
"notify::active"
,
lambda
switch
,
state
:
self
.
component
.
wifi_password_revealer
.
set_reveal_child
(
not
switch
.
get_active
()))
...
...
@@ -134,6 +135,9 @@ class Application:
self
.
component
.
sd_card_combobox
.
pack_start
(
cell_renderer
,
True
)
self
.
component
.
sd_card_combobox
.
add_attribute
(
cell_renderer
,
"text"
,
counter
)
# about dialog
self
.
component
.
about_dialog
.
set_logo
(
GdkPixbuf
.
Pixbuf
.
new_from_file_at_scale
(
data
.
pibox_logo
,
200
,
-
1
,
True
))
# done window
self
.
component
.
done_window_ok_button
.
connect
(
"clicked"
,
lambda
widget
:
self
.
component
.
done_window
.
hide
())
self
.
component
.
done_window
.
connect
(
"delete-event"
,
hide_on_delete
)
...
...
@@ -242,6 +246,11 @@ class Application:
def
space_error_window_ok_button_clicked
(
self
,
widget
):
self
.
component
.
space_error_window
.
hide
()
def
activate_menu_about
(
self
,
widget
):
response
=
self
.
component
.
about_dialog
.
run
()
if
response
==
Gtk
.
ResponseType
.
DELETE_EVENT
or
response
==
Gtk
.
ResponseType
.
CANCEL
:
self
.
component
.
about_dialog
.
hide
()
def
installation_done
(
self
,
error
):
ok
=
error
==
None
validate_label
(
self
.
component
.
done_label
,
ok
)
...
...
ui.glade
View file @
60a0abfc
...
...
@@ -2,6 +2,19 @@
<!-- Generated with glade 3.20.0 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.10"
/>
<object
class=
"GtkMenu"
id=
"no_id_7"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkImageMenuItem"
id=
"menu_quit1"
>
<property
name=
"label"
>
gtk-quit
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
</child>
</object>
<object
class=
"GtkWindow"
id=
"run_window"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"title"
translatable=
"yes"
>
Pibox installer
</property>
...
...
@@ -206,6 +219,15 @@
<object
class=
"GtkMenu"
id=
"no_id_59"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<object
class=
"GtkImageMenuItem"
id=
"menu_about"
>
<property
name=
"label"
>
gtk-about
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
</child>
<child>
<object
class=
"GtkImageMenuItem"
id=
"menu_quit"
>
<property
name=
"label"
>
gtk-quit
</property>
...
...
@@ -705,6 +727,37 @@
</object>
</child>
</object>
<object
class=
"GtkAboutDialog"
id=
"about_dialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"type_hint"
>
dialog
</property>
<property
name=
"transient_for"
>
window
</property>
<property
name=
"program_name"
>
Pibox Installer
</property>
<property
name=
"version"
>
0.0.2
</property>
<property
name=
"website"
>
https://framagit.org/ideascube/pibox-installer
</property>
<property
name=
"logo_icon_name"
>
image-missing
</property>
<property
name=
"license_type"
>
gpl-3-0
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"no_id_60"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
2
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"no_id_61"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
False
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
<object
class=
"GtkWindow"
id=
"space_error_window"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"title"
translatable=
"yes"
>
Pibox installer
</property>
...
...
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