Changeset 1407

Show
Ignore:
Timestamp:
08/17/07 10:26:40 (6 years ago)
Author:
kop-labs
Message:

WizardEditor?

Location:
branch/k0p/umitInterfaceEditor
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • branch/k0p/umitInterfaceEditor/Main.py

    r1401 r1407  
    291291            self.edit_mode_opt="Wizard" 
    292292             
    293             bool = self.profile_box==None  
     293            bool = self.wizard_box==None  
    294294            self.create_wizard_edit() 
    295295            if bool: 
    296296                self.vbox_left.pack_start(self.wizard_box, True, True) 
     297             
    297298            self.wizard_box.show_all() 
    298299            self.wizard_box.notebook.put_on_page() 
  • branch/k0p/umitInterfaceEditor/Profile.py

    r1397 r1407  
    154154        self._listoption = listoption 
    155155        HIGNotebook.__init__(self) 
     156         
    156157        self.sections_widgets = {} 
    157158        self.sections_widgets_list = [] 
     
    315316class ProfileEdit(gtk.HBox): 
    316317     
    317     def __init__(self, listoption, profile_editor=profile_editor): 
     318    def __init__(self, listoption, profile_editor_file=profile_editor): 
    318319        gtk.HBox.__init__(self) 
    319320        self._toolbar = ToolBarInterface() 
    320321        self._toolbar.set_optionlist(listoption) 
    321          
     322        self.profile_editor_file = profile_editor_file 
    322323        self._proprieties = None  
    323324        self._notebook_tools = None  
     
    325326        self._scroolledmain = HIGScrolledWindow() 
    326327        #NOTEBOOKEDITABLE : 
    327         self._profilecore = ProfileCore(profile_editor) 
     328        self._profilecore = ProfileCore(profile_editor_file) 
    328329        self._toolbar.set_profilecore(self._profilecore) 
    329330 
     
    372373     
    373374    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) 
    376377     
    377378    def create_events(self): 
  • branch/k0p/umitInterfaceEditor/ProfileCore.py

    r1393 r1407  
    547547        file_object = open(filename, "w") 
    548548        #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='') 
    552557        file_object.close() 
    553558 
  • branch/k0p/umitInterfaceEditor/WizardEditor.py

    r1397 r1407  
    2626    def __init__(self, optionlist): 
    2727        ProfileEdit.__init__(self, optionlist, wizard) 
     28        #self.notebook.set_tab_pos(gtk.POS_LEFT) 
    2829         
    2930