Skip to content

Commit

Permalink
folder name changed : Essai -> Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rete committed Oct 23, 2011
1 parent 962a6e6 commit 642869c
Show file tree
Hide file tree
Showing 18 changed files with 563 additions and 0 deletions.
Binary file added Test/LogoSummerDev.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions Test/SD-APropos.glade
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="2.24"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkAboutDialog" id="aboutdialog1">
<property name="can_focus">False</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">A Propos</property>
<property name="window_position">center</property>
<property name="type_hint">dialog</property>
<property name="program_name">SummerDev</property>
<property name="version">1.0.0</property>
<property name="copyright" translatable="yes">(c) R. Eté</property>
<property name="comments" translatable="yes">For simple development</property>
<property name="website">http://www.facebook.com/remi.ete</property>
<property name="authors">Eté Rémi
Poss Stéphane</property>
<property name="artists"></property>
<property name="logo">SummerDev.jpg</property>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
<child internal-child="vbox">
<object class="GtkVBox" id="dialog-vbox1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">2</property>
<child internal-child="action_area">
<object class="GtkHButtonBox" id="dialog-action_area1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<signal name="destroy" handler="gtk_main_quit" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</interface>
Binary file added Test/SummerDev.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Test/Sun.odg
Binary file not shown.
Binary file added Test/SunDev.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Test/SunDev.odg
Binary file not shown.
18 changes: 18 additions & 0 deletions Test/VirtualTerminal.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import os
import gtk
import vte
import time



window = gtk.Window()
window.connect('destroy', lambda w: gtk.main_quit())

terminal = vte.Terminal()


child_pid = terminal.fork_command()

window.add(terminal)
window.show_all()
gtk.main()
Empty file added Test/__init__.py
Empty file.
37 changes: 37 additions & 0 deletions Test/helloworld.glade
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy project-wide -->
<object class="GtkWindow" id="mainWindow">
<property name="visible">True</property>
<property name="title" translatable="yes">Hello World!</property>
<signal name="destroy" handler="on_mainWindow_destroy"/>
<child>
<object class="GtkVBox" id="vbox1">
<property name="visible">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="myLabel">
<property name="visible">True</property>
<property name="label" translatable="yes">Hello</property>
</object>
<packing>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="myButton">
<property name="label" translatable="yes">Mon bouton</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<signal name="clicked" handler="on_myButton_clicked"/>
</object>
<packing>
<property name="position">1</property>
</packing>
</child>
</object>
</child>
</object>
</interface>
22 changes: 22 additions & 0 deletions Test/helloworld.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/usr/bin/python
import pygtk
pygtk.require("2.0")
import gtk

class HelloWorld:
def __init__(self):
interface = gtk.Builder()
interface.add_from_file('helloworld.glade')

self.myLabel = interface.get_object("myLabel")
interface.connect_signals(self)

def on_mainWindow_destroy(self, widget):
gtk.main_quit()

def on_myButton_clicked(self, widget):
self.myLabel.set_text("World!")


HelloWorld()
gtk.main()
19 changes: 19 additions & 0 deletions Test/interface.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import pygtk
pygtk.require("2.0")
import gtk


class SD_APropos:
def __init__(self):
interface = gtk.Builder()
interface.add_from_file('SD-APropos.glade')

self.aboutdialog1 = interface.get_object("aboutdialog1")
interface.connect_signals(self)

def on_mainWindow_destroy(self, widget):
gtk.main_quit()

if __name__ == "__main__":
SD_APropos()
gtk.main()
Binary file added Test/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Test/moonOwl.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Test/sun_19.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 642869c

Please sign in to comment.