diff frontends/src/wix/xmlui.py @ 587:952322b1d490

Remove trailing whitespaces.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Fri, 18 Jan 2013 17:55:34 +0100
parents ca13633d3b6b
children 84a6e83157c2
line wrap: on
line diff
--- a/frontends/src/wix/xmlui.py	Fri Jan 18 17:55:27 2013 +0100
+++ b/frontends/src/wix/xmlui.py	Fri Jan 18 17:55:34 2013 +0100
@@ -43,11 +43,11 @@
         self.sizer = wx.BoxSizer(wx.VERTICAL)
         self.SetSizer(self.sizer)
         self.SetAutoLayout(True)
-        
+
         #events
         if not 'NO_CANCEL' in self.options:
             self.Bind(wx.EVT_CLOSE, self.onClose, self)
-        
+
         self.MakeModal()
 
         self.constructUI(xml_data)
@@ -83,7 +83,7 @@
             elif type=="password":
                 ctrl = wx.TextCtrl(parent, -1, value, style=wx.TE_PASSWORD)
                 self.ctrl_list[name] = ({'type':type, 'control':ctrl})
-                _proportion = 1 
+                _proportion = 1
             elif type=="textbox":
                 ctrl = wx.TextCtrl(parent, -1, value, style=wx.TE_MULTILINE)
                 self.ctrl_list[name] = ({'type':type, 'control':ctrl})
@@ -142,12 +142,12 @@
                 if parent:
                     parent.sizer.Add(current, _proportion, flag=wx.EXPAND)
             elif node.nodeName == "category":
-                name = node.getAttribute('name') 
-                label = node.getAttribute('label') 
+                name = node.getAttribute('name')
+                label = node.getAttribute('label')
                 if not node.nodeName in wanted or not name or not isinstance(parent,wx.Notebook):
                     raise Exception("Invalid XMLUI") #TODO: make a custom exception
                 notebook = parent
-                tab_panel = wx.Panel(notebook, -1) 
+                tab_panel = wx.Panel(notebook, -1)
                 tab_panel.sizer = wx.BoxSizer(wx.VERTICAL)
                 tab_panel.SetSizer(tab_panel.sizer)
                 notebook.AddPage(tab_panel, label or name)
@@ -162,7 +162,7 @@
     def constructUI(self, xml_data):
         panel=wx.Panel(self)
         panel.sizer = wx.BoxSizer(wx.VERTICAL)
-        
+
         cat_dom = minidom.parseString(xml_data.encode('utf-8'))
         top= cat_dom.documentElement
         self.type = top.getAttribute("type")
@@ -230,13 +230,13 @@
             warning (_("The form data is not sent back, the type is not managed properly"))
         self.MakeModal(False)
         self.Destroy()
-        
+
     def onFormCancelled(self, event):
         """Called when cancel button is clicked"""
         debug(_("Cancelling form"))
         self.MakeModal(False)
         self.Close()
-   
+
     def onClose(self, event):
         """Close event: we have to send the form."""
         debug(_("close"))