Fixed bug in wxGlade hmi python code generated
authorLaurent Bessard
Tue, 14 May 2013 00:30:35 +0200
changeset 1131 f794fbff8f02
parent 1130 f96e0254f0ce
child 1132 28f96aa9c070
child 1133 d81d99fd1932
Fixed bug in wxGlade hmi python code generated
wxglade_hmi/wxglade_hmi.py
--- a/wxglade_hmi/wxglade_hmi.py	Mon May 13 23:15:28 2013 +0200
+++ b/wxglade_hmi/wxglade_hmi.py	Tue May 14 00:30:35 2013 +0200
@@ -88,7 +88,7 @@
         
         for section in ["init", "cleanup"]:
             if not sections_code[section]:
-                sections_code = "    pass"
+                sections_code[section] = "    pass"
         
         sections_code.update({
             "location": location_str,