Knowledge Base Article

Can I use TK from System Console?

Description

Yes, the TK libraries and functions can be used from System Console.

Resolution

For example:

From the SystemConsole command line run the following code,  which will open a TK sub Window with 2 buttons:

package require Tk

button .b1 -text Hello -underline 0

    button .b2 -text World -underline 0

    bind . <Key-h> {.b1 flash; .b1 invoke}

    bind . <Key-w> {.b2 flash; .b2 invoke}

    pack .b1 .b2

This information will be included in a furture version of the Quartus® II handbook.

Updated 2 months ago
Version 3.0
No CommentsBe the first to comment