Changeset 1407
- Timestamp:
- 08/17/07 10:26:40 (6 years ago)
- Location:
- branch/k0p/umitInterfaceEditor
- Files:
-
- 4 modified
-
Main.py (modified) (1 diff)
-
Profile.py (modified) (4 diffs)
-
ProfileCore.py (modified) (1 diff)
-
WizardEditor.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branch/k0p/umitInterfaceEditor/Main.py
r1401 r1407 291 291 self.edit_mode_opt="Wizard" 292 292 293 bool = self. profile_box==None293 bool = self.wizard_box==None 294 294 self.create_wizard_edit() 295 295 if bool: 296 296 self.vbox_left.pack_start(self.wizard_box, True, True) 297 297 298 self.wizard_box.show_all() 298 299 self.wizard_box.notebook.put_on_page() -
branch/k0p/umitInterfaceEditor/Profile.py
r1397 r1407 154 154 self._listoption = listoption 155 155 HIGNotebook.__init__(self) 156 156 157 self.sections_widgets = {} 157 158 self.sections_widgets_list = [] … … 315 316 class ProfileEdit(gtk.HBox): 316 317 317 def __init__(self, listoption, profile_editor =profile_editor):318 def __init__(self, listoption, profile_editor_file=profile_editor): 318 319 gtk.HBox.__init__(self) 319 320 self._toolbar = ToolBarInterface() 320 321 self._toolbar.set_optionlist(listoption) 321 322 self.profile_editor_file = profile_editor_file 322 323 self._proprieties = None 323 324 self._notebook_tools = None … … 325 326 self._scroolledmain = HIGScrolledWindow() 326 327 #NOTEBOOKEDITABLE : 327 self._profilecore = ProfileCore(profile_editor )328 self._profilecore = ProfileCore(profile_editor_file) 328 329 self._toolbar.set_profilecore(self._profilecore) 329 330 … … 372 373 373 374 def save(self): 374 self._profilecore.write_file( profile_editor)375 log.debug('<<< Saving to file %s ' % profile_editor)375 self._profilecore.write_file(self.profile_editor_file) 376 log.debug('<<< Saving to file %s ' % self.profile_editor_file) 376 377 377 378 def create_events(self): -
branch/k0p/umitInterfaceEditor/ProfileCore.py
r1393 r1407 547 547 file_object = open(filename, "w") 548 548 #xml.dom.ext.PrettyPrint(self.xml, file_object) 549 #print self.xml.toprettyxml(indent='', newl='') 550 551 self.xml.writexml(file_object, indent='\t', newl='\n') 549 #doc_str = self.xml.toprettyxml(indent='', newl='') 550 #doc_str = self.xml.toxml() 551 #print doc_str 552 #doc_str = doc_str.replace('\n','') 553 #doc_str = doc_str.replace('\t','') 554 #print doc_str 555 #self.xml = minidom.parseString(doc_str) 556 self.xml.writexml(file_object, indent='', newl='') 552 557 file_object.close() 553 558 -
branch/k0p/umitInterfaceEditor/WizardEditor.py
r1397 r1407 26 26 def __init__(self, optionlist): 27 27 ProfileEdit.__init__(self, optionlist, wizard) 28 #self.notebook.set_tab_pos(gtk.POS_LEFT) 28 29 29 30
