def on_save(self, event):
        xml_path = wx_utils.my_file_dialog(parent=self, \
                                           msg="Save Block Diagram System as", \
                                           kind="save", \
                                           wildcard=xml_wildcard, \
                                           )
        if xml_path:
            root = ET.Element('block_diagram_system')
            bd_list_xml = ET.SubElement(root, 'blocks')

            for block in self.blocklist:
                block.create_xml(bd_list_xml)

            xml_utils.write_pretty_xml(root, xml_path)
예제 #2
0
    def save(self, event=None):
        xml_path = wx_utils.my_file_dialog(parent=self.frame, \
                                   msg="Save GUI state as", \
                                   kind="save", \
                                   wildcard=xml_wildcard, \
                                   )

        control_attr_list = ['spreadsheet_path_box','greeting_box','body_box',\
                             'closing_box','signature_box','subject_box']
        self.create_xml('multi_email_gui', control_attr_list)

        print('xml_path = ' + xml_path)
        #import pdb
        #pdb.set_trace()
        xml_utils.write_pretty_xml(self.xml, xml_path)
예제 #3
0
    def save(self, event=None):
        course = self.get_course()
        xml_name = 'course_prep_%s.xml' % course
        xml_path = os.path.join(git_dir, xml_name)
        ## xml_path = wx_utils.my_file_dialog(parent=self.frame, \
        ##                                    msg="Save GUI state as", \
        ##                                    kind="save", \
        ##                                    wildcard=xml_wildcard, \
        ##                                    )

        control_attr_list = ['coursechoice','lecture_number_box','root_folder_box',\
                             'lecture_title_box']
        self.create_xml('course_prep_gui', control_attr_list)
        
        print('xml_path = ' + xml_path)
        xml_utils.write_pretty_xml(self.xml, xml_path)
    def save(self, event=None):
        course = self.get_course()
        xml_name = 'course_prep_%s.xml' % course
        xml_path = os.path.join(git_dir, xml_name)
        ## xml_path = wx_utils.my_file_dialog(parent=self.frame, \
        ##                                    msg="Save GUI state as", \
        ##                                    kind="save", \
        ##                                    wildcard=xml_wildcard, \
        ##                                    )

        control_attr_list = ['coursechoice','lab_number_box','team_grades_folder_box',\
                             'lab_title_box']
        self.create_xml('course_prep_gui', control_attr_list)
        
        print('xml_path = ' + xml_path)
        xml_utils.write_pretty_xml(self.xml, xml_path)