Skip to content

Great library! One question - How to get the result of tcl/tk function call #19

@john157157

Description

@john157157

Any time I try to get information from tcl/tk I do an Eval like this:

`
i := ir.Eval("[winfo screenheight .]")

fmt.Println(i)
`

and it produces a response like this:
invalid command name "1080"

Obviously tcl is trying to execute the result of the winfo call. Same thing happens with different functions and it doesn't matter if I put the results into a tcl variable first and then read the variable.

I can always strip the "invalid command name" and the quotes and have the result I need but that doesn't seem like the 'A' plan. Anybody know what I'm doing wrong?

Btw, I really am enjoying this library. Gothic and Golang templates go well together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions