Commit 3394897c authored by Thuban's avatar Thuban

revert

parent 84512b8e
#!/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()
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<requires lib="gtk+" version="2.24"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="bienvenue">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -19,18 +19,7 @@
<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>
<property name="pixbuf">welcome.png</property>
</object>
<packing>
<property name="expand">True</property>
......@@ -40,19 +29,18 @@ Have fun with HandyLinux!</property>
</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">Beginner : click here</property>
<property name="pixbuf">noob-en.png</property>
<property name="pixbuf">noob.png</property>
</object>
</child>
</object>
......
#!/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 && python3 ./handyupdate.py
sleep 5s && python ./handyupdate.py
fi
fi
exit 0
#!/usr/bin/python3
#!/usr/bin/python
# -*-coding:utf-8-*
from gi.repository import Gtk
import pygtk
pygtk.require("2.0")
import gtk
import os
import locale
LOCALE = locale.setlocale(locale.LC_ALL, "")[0:2]
class HandyUpdate():
<<<<<<< HEAD
def on_button1_clicked(self, widget):
Gtk.main_quit()
......@@ -14,6 +17,46 @@ class HandyUpdate():
def on_button2_clicked(self, widget):
os.system("handy-update-checker &")
gtk.main_quit()
=======
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 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" +
" des mises à jour peuvent être disponibles. \n" +
"\n Désirez-vous vérifier les mises à jour disponibles ? \n" +
"\n Une connexion internet active est nécessaire. \n" +
" Votre mot de passe vous sera demandé. \n")
vBox.pack_start(label, False, False, 10)
hBox = gtk.HBox()
bouton1 = gtk.ToggleButton(label = "non merci")
bouton1.connect("clicked", self.on_button1_clicked)
bouton2 = gtk.ToggleButton(label = "oui, merci")
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()
>>>>>>> parent of 451ed9c... réécriture du welcome
def __init__(self):
window = Gtk.Window()
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<requires lib="gtk+" version="2.24"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="bienvenue">
<property name="visible">True</property>
<property name="can_focus">False</property>
......@@ -19,15 +19,6 @@
<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>
......@@ -38,18 +29,17 @@ Amusez-vous bien avec Handylinux!</property>
</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/python3
#!/usr/bin/python
# -*-coding:utf-8-*
#######################
# handy linux welcome
# by arpinux
# mod by thuban
########################################################################
from gi.repository import Gtk
import pygtk
pygtk.require("2.0")
import gtk
import os
import locale
LOCALE = locale.setlocale(locale.LC_ALL, "")[0:2]
########################################################################
# main window
########################################################################
class HandyWelcome():
def __init__(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)
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.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