summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2007-07-24 18:19:33 +0200
committerGuillaume Seguin <guillaume@segu.in>2007-07-24 18:19:33 +0200
commit5d727606aeabd24348c317e12ae3db6f00164476 (patch)
tree1c2206b99b0708f323a2428d99a9da7a3aae9d81
parent22a87992c7098b9bd4b68fb4e32c690dc47db14e (diff)
downloadtictactoe-5d727606aeabd24348c317e12ae3db6f00164476.tar.gz
tictactoe-5d727606aeabd24348c317e12ae3db6f00164476.tar.bz2
* Update UI
-rw-r--r--tictactoe.glade4
-rwxr-xr-xtictactoe.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/tictactoe.glade b/tictactoe.glade
index 1c1587d..8268507 100644
--- a/tictactoe.glade
+++ b/tictactoe.glade
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
-<!--Generated with glade3 3.3.1 on Tue Jul 24 05:10:49 2007 by ixce@ed3n-m-->
+<!--Generated with glade3 3.3.1 on Tue Jul 24 18:18:58 2007 by ixce@ed3n-m-->
<glade-interface>
<widget class="GtkWindow" id="mainWindow">
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
@@ -122,6 +122,7 @@
</child>
</widget>
<widget class="GtkMessageDialog" id="messageDialog">
+ <property name="width_request">200</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="border_width">5</property>
<property name="title" translatable="yes">pyTicTacToe</property>
@@ -133,6 +134,7 @@
<property name="transient_for">mainWindow</property>
<property name="has_separator">False</property>
<property name="buttons">GTK_BUTTONS_OK</property>
+ <property name="secondary_text">Replay ?</property>
<signal name="close" handler="close_message_dialog"/>
<signal name="delete_event" handler="close_message_dialog"/>
<signal name="response" handler="close_message_dialog"/>
diff --git a/tictactoe.py b/tictactoe.py
index e313a82..e7225e8 100755
--- a/tictactoe.py
+++ b/tictactoe.py
@@ -377,7 +377,8 @@ class pyTicTacToe:
def open_message_dialog (self, text):
'''Open the message dialog and set the message'''
- self.messageDialog.set_markup ("<b>%s</b>" % text)
+ text = '''<span font_desc="Sans 16"><b>%s</b></span>''' % text
+ self.messageDialog.set_markup (text)
self.messageDialog.show ()
def close_message_dialog (self, *args):