-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
563 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.