# Create textLogger text_handler = TextHandler(st) # Add the handler to logger logger = logging.getLogger() logger.addHandler(text_handler) #set level to print out all. Otherwise this will ignore the debug an info prints. logger.root.setLevel(logging.NOTSET) st.update() setWindowHeight = outputGroupFrame.winfo_height() setWindowHeight += lbl.winfo_height() setWindowHeight += fNameEntry.winfo_height() setWindowHeight += st.winfo_height() mystring = str(st.winfo_width() + 25) + "x" + str(setWindowHeight + 22) window.geometry(mystring) window.update() window.mainloop() else: writeFileHeader(creoLogicalFileName) #------------------------------------------------------------------------------ # Process the commands in console mode #------------------------------------------------------------------------------ # Process Components (Connectors) print("Writing Components, Connectors:") print("-------------------------------") components = xmlWriteCompData.xmlWriteCompData() components.writeCompData(netlist, creoLogicalFileName)