Commit 5b8003a9 authored by arpinux's avatar arpinux

Merge branch 'master' of git.framasoft.org:handylinux/handylinux-2

parents ce04a5f3 296ee68c
......@@ -15,6 +15,8 @@
- intégrer florence comme clavier virtuel de bureau ?
- thunar-mediainfo dans les handylinux-thunar-actions https://handylinux.org/forum/viewtopic.php?id=1757 et installation de mediainfo-gui ?
- Ajouter pavucontrol à la liste des paquets?
- Enlever la bannière avec l'avatar de thuban (je croyais l'avoir fait,
ça ne s'est pas conservé?)
- ...
......
#!/usr/bin/python
# -*-coding:utf-8-*
import pygtk
pygtk.require("2.0")
import gtk
import os
class HandyUpdate():
def on_button1_clicked(self, widget):
gtk.main_quit()
def on_button2_clicked(self, widget):
os.system("handy-update-checker &")
gtk.main_quit()
def __init__(self):
window = gtk.Window()
window.set_title("HandyUpdate")
window.connect("destroy", self.on_button1_clicked)
window.set_default_size(300, 200)
vBox = gtk.VBox()
label = gtk.Label()
label.set_text("\n You have just installed HandyLinux ... merci :) \n" +
"\n Your system is ready to use, but \n" +
" depending on your ISO building date, \n" +
" some updates may be available. \n" +
"\n Do you want to check for available update(s) ? \n" +
"\n You need an active network. \n" +
" Your password will be asked. \n")
vBox.pack_start(label, False, False, 10)
hBox = gtk.HBox()
bouton1 = gtk.ToggleButton(label = "no thx")
bouton1.connect("clicked", self.on_button1_clicked)
bouton2 = gtk.ToggleButton(label = "yes, thx")
bouton2.connect("clicked", self.on_button2_clicked)
hBox.add(bouton1)
hBox.add(bouton2)
vBox.pack_end(hBox, False, False, 4)
window.add(vBox)
window.show_all()
gtk.main()
if __name__ == '__main__':
HandyUpdate()
#!/usr/bin/python
# -*-coding:utf-8-*
#######################
# handy linux welcome
# by arpinux
########################################################################
import pygtk
pygtk.require("2.0")
import gtk
import os
########################################################################
# main window
########################################################################
class HandyWelcome():
def __init__(self):
interface = gtk.Builder()
interface.add_from_file("welcome.glade")
interface.connect_signals(self)
def on_button1_clicked(self, widget):
os.system("x-www-browser file:///usr/share/handylinux/guide-en.html &")
def on_bienvenue_delete_event(self, widget, event):
gtk.main_quit()
########################################################################
if __name__ == "__main__":
HandyWelcome()
gtk.main()
......@@ -104,7 +104,7 @@ else
orca &
fi
#demande de mise à jour
sleep 5s && python ./handyupdate.py
sleep 5s && python3 ./handyupdate.py
fi
fi
exit 0
#!/usr/bin/python
#!/usr/bin/python3
# -*-coding:utf-8-*
import pygtk
pygtk.require("2.0")
import gtk
from gi.repository import Gtk
import os
class HandyUpdate():
def on_button1_clicked(self, widget):
gtk.main_quit()
Gtk.main_quit()
def on_button2_clicked(self, widget):
os.system("handy-update-checker &")
......@@ -17,13 +15,13 @@ class HandyUpdate():
def __init__(self):
window = gtk.Window()
window = Gtk.Window()
window.set_title("HandyUpdate")
window.connect("destroy", self.on_button1_clicked)
window.set_default_size(300, 200)
vBox = gtk.VBox()
label = gtk.Label()
vBox = Gtk.VBox()
label = Gtk.Label()
label.set_text("\n Vous venez d'installer HandyLinux ... merci :) \n" +
"\n Votre système est prêt à être utilisé, cependant \n" +
" selon la date de construction de votre image ISO, \n" +
......@@ -33,10 +31,10 @@ class HandyUpdate():
" Votre mot de passe vous sera demandé. \n")
vBox.pack_start(label, False, False, 10)
hBox = gtk.HBox()
bouton1 = gtk.ToggleButton(label = "non merci")
hBox = Gtk.HBox()
bouton1 = Gtk.ToggleButton(label = "non merci")
bouton1.connect("clicked", self.on_button1_clicked)
bouton2 = gtk.ToggleButton(label = "oui, merci")
bouton2 = Gtk.ToggleButton(label = "oui, merci")
bouton2.connect("clicked", self.on_button2_clicked)
hBox.add(bouton1)
hBox.add(bouton2)
......@@ -44,7 +42,7 @@ class HandyUpdate():
vBox.pack_end(hBox, False, False, 4)
window.add(vBox)
window.show_all()
gtk.main()
Gtk.main()
if __name__ == '__main__':
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkWindow" id="bienvenue">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="has_focus">True</property>
<property name="is_focus">True</property>
<property name="title" translatable="yes">Welcome to HandyLinux</property>
<property name="modal">True</property>
<property name="window_position">center</property>
<signal name="delete-event" handler="on_bienvenue_delete_event" swapped="no"/>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Welcome to Handylinux.
For absolute beginners, left-click on the link "beginner : click here" on the bottom of this page...
To access the main applications avaiable on your computer, left-click on the blue handymenu icon on bottom left corner of your screen...
To access the main online documentation or the specific accessibility help page, left-click on the access menu at the botom right.
To shutdown or reboot your computer, left-clicj on the appropriate icon on the bottom right corner of your screen.
Have fun with HandyLinux!</property>
<property name="pixbuf">welcome-en.png</property>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="button1">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="border_width">5</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="on_button1_clicked" swapped="no"/>
<child>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Beginner : click here</property>
<property name="pixbuf">noob-en.png</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">False</property>
<property name="padding">10</property>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
......@@ -19,7 +19,7 @@
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">welcome.png</property>
<property name="pixbuf">welcome-en.png</property>
</object>
<packing>
<property name="expand">True</property>
......@@ -40,7 +40,7 @@
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="pixbuf">noob.png</property>
<property name="pixbuf">noob-en.png</property>
</object>
</child>
</object>
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface>
<requires lib="gtk+" version="2.24"/>
<!-- interface-naming-policy project-wide -->
<requires lib="gtk+" version="3.0"/>
<object class="GtkWindow" id="bienvenue">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -19,6 +19,15 @@
<object class="GtkImage" id="image1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Si vous débutez en informatique, clic gauche sur le lien "je débute, je clique ici" en bas de cette fenêtre...
Pour accéder aux principales applications disponibles sur votre machine, cliquez gauche sur l'icône handymenu (la main bleue) en bas à gauche de votre écran...
Pour accéder à l'aide en ligne et aux outils d'accessibilité, clic gauche sur le menu "access" en bas à droite...
Pour éteindre ou redémarrer votre ordinateur, clic-gauche sur l'icône appropriée en bas à droite de l'écran...
Amusez-vous bien avec Handylinux!</property>
<property name="pixbuf">welcome.png</property>
</object>
<packing>
......@@ -29,17 +38,18 @@
</child>
<child>
<object class="GtkButton" id="button1">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="border_width">5</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<signal name="clicked" handler="on_button1_clicked" swapped="no"/>
<child>
<object class="GtkImage" id="image2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Je débute, je clique ici.</property>
<property name="pixbuf">noob.png</property>
</object>
</child>
......
#!/usr/bin/python
#!/usr/bin/python3
# -*-coding:utf-8-*
#######################
# handy linux welcome
# by arpinux
# mod by thuban
########################################################################
import pygtk
pygtk.require("2.0")
import gtk
from gi.repository import Gtk
import os
import locale
LOCALE = locale.setlocale(locale.LC_ALL, "")[0:2]
########################################################################
# main window
########################################################################
class HandyWelcome():
def __init__(self):
interface = gtk.Builder()
interface.add_from_file("welcome.glade")
interface.connect_signals(self)
interface = Gtk.Builder()
if LOCALE == 'fr':
interface.add_from_file("welcome.glade")
else:
interface.add_from_file("welcome-en.glade")
interface.connect_signals(self)
def on_button1_clicked(self, widget):
os.system("x-www-browser file:///usr/share/handylinux/guide.html &")
def on_bienvenue_delete_event(self, widget, event):
gtk.main_quit()
Gtk.main_quit()
########################################################################
if __name__ == "__main__":
HandyWelcome()
gtk.main()
HandyWelcome()
Gtk.main()
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