SF.net SVN: morphix: [2374] trunk/morphixinstaller2

[email protected] Sat, 29 Jul 2006 17:52:03 -0700
Newsgroups gmane.linux.morphix.cvs
Message-ID <[email protected]>
Revision: 2374
Author:   alextreme
Date:     2006-07-29 17:51:55 -0700 (Sat, 29 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/morphix/?rev=2374&view=rev

Log Message:
-----------
  * minor modifications

Modified Paths:
--------------
    trunk/morphixinstaller2/morphixinstaller.glade
    trunk/morphixinstaller2/morphixinstaller.py
Modified: trunk/morphixinstaller2/morphixinstaller.glade
===================================================================
--- trunk/morphixinstaller2/morphixinstaller.glade	2006-07-26 22:00:47 UTC (rev 2373)
+++ trunk/morphixinstaller2/morphixinstaller.glade	2006-07-30 00:51:55 UTC (rev 2374)
@@ -23,6 +23,7 @@
   <property name="focus_on_map">True</property>
   <property name="urgency_hint">False</property>
   <property name="has_separator">True</property>
+  <signal name="destroy" handler="miSignalQuit" last_modification_time="Sun, 30 Jul 2006 00:46:27 GMT"/>
 
   <child internal-child="vbox">
     <widget class="GtkVBox" id="dialog-vbox2">
@@ -45,7 +46,7 @@
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
 	      <property name="focus_on_click">True</property>
 	      <property name="response_id">-11</property>
-	      <signal name="clicked" handler="gtk_widget_show" object="HelpDialog" last_modification_time="Mon, 17 Feb 2003 23:21:20 GMT"/>
+	      <signal name="clicked" handler="displayHelp" object="HelpDialog" last_modification_time="Sun, 30 Jul 2006 00:50:51 GMT"/>
 	    </widget>
 	  </child>
 
@@ -59,7 +60,7 @@
 	      <property name="relief">GTK_RELIEF_NORMAL</property>
 	      <property name="focus_on_click">True</property>
 	      <property name="response_id">-6</property>
-	      <signal name="clicked" handler="gtk_main_quit" last_modification_time="Fri, 31 Jan 2003 22:44:04 GMT"/>
+	      <signal name="clicked" handler="miSignalQuit" last_modification_time="Sun, 30 Jul 2006 00:45:48 GMT"/>
 	    </widget>
 	  </child>
 

Modified: trunk/morphixinstaller2/morphixinstaller.py
===================================================================
--- trunk/morphixinstaller2/morphixinstaller.py	2006-07-26 22:00:47 UTC (rev 2373)
+++ trunk/morphixinstaller2/morphixinstaller.py	2006-07-30 00:51:55 UTC (rev 2374)
@@ -39,19 +39,11 @@
 		self.SelectPartExpert = gtk.glade.XML(self.gladefile, "SelectPartExpert") 
 		self.DataRoot = gtk.glade.XML(self.gladefile, "DataRoot") 
 
-		dic = {"on_cancelbutton2_clicked" : gtk.main_quit
-			, "on_okbuttonStart_clicked" : self.displaySelectHarddisk}
-		self.StartScreen.signal_autoconnect(dic)
+		self.StartScreen.signal_autoconnect(self)
+		self.SelectHarddisk.signal_autoconnect(self)
+		self.SelectSwap.signal_autoconnect(self)
+		self.SelectRoot.signal_autoconnect(self)
 
-		dic = {"on_okbuttonHarddisk_clicked" : self.displaySelectSwap}
-		self.SelectHarddisk.signal_autoconnect(dic)
-
-		dic = {"on_okbuttonSwap_clicked" : self.displaySelectRoot}
-		self.SelectSwap.signal_autoconnect(dic)
-
-		dic = {"on_okbuttonRoot_clicked" : self.displayDoFilesystem}
-		self.SelectRoot.signal_autoconnect(dic)
-
 		
 	def displaySelectHarddisk(self, widget):
 
@@ -111,7 +103,13 @@
 		screen = self.DoFilesystem.get_widget("DoFilesystem")
 		screen.set_property("visible", True)
 
+	def miSignalQuit(self, widget):
+		sys.exit()
 
+	def displayHelp(self, widget):
+		screen = self.HelpDialog.get_widget("HelpDialog")
+		screen.set_property("visible", True)
+
 if __name__ == "__main__":
 	mi = MorphixInstaller()
 	gtk.main()
\ No newline at end of file


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV