tcl - How can I embed TkCon (or other Tk console) as a widget? -
i want make tcl/tk application is--mostly--a conventional menus-and-buttons direct manipulation tool, of interaction through graphical interface implemented in tcl/tk.
however, advanced uses (and debugging), i'd have widget (subwindow) within main window contains tk console can type commands, see output, , otherwise control application.
it seems easy enough start tkcon (or wish) , 1 top-level window, create application interface in separate top-level window. application work fine way, i'd 2 windowso part of same layout, move together, support resizing, etc.
is there easy way tkcon?
i'd tkcon window able display messages bubble within application (e.g., debug output). messages generated tcl code; others c code makes part of application. don't need capture stdout such--i'm willing call special-purpose function deliver messages--but it's not clear what's effective way to them display that.
for tkcon see donal's answer. add can embed tk built-in console used on windows. script available on non-windows , can made embed tabbed notebook page example. see tkchat_console.tcl example of - file loads tk console.tcl file , ::tkchat::embeddedconsoledemo function @ bottom shows how might use this.
Comments
Post a Comment