#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ tkRAD - tkinter Rapid Application Development library (c) 2013+ Raphaƫl SEBAN This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see: http://www.gnu.org/licenses/ """ # ==================== /!\ STANDALONE MODULE /!\ =================== # lib imports import re import traceback import xml.etree.ElementTree as ET import tkinter as TK from tkinter import messagebox as MB # simple widget building function def build (xml, master = None): r""" easy widget building function; @xml param can be either an XML string of chars or a file path; if @master param is None, built-in widgets will pop up into a Tk() toplevel window for demo testing; returns a tkinter.Frame widget containing XML built-in tkinter widgets; examples: # testing XML widgets from char string from tkRAD.easy import builder xml = \"""