Jun 24, 2010 #1 jgoeders Programmer Joined Jun 24, 2010 Messages 1 Location CA I want to use a string as an option. For example: set x "-weight bold" font configure my_font $x This errors with: bad option "-weight bold" must be ...
I want to use a string as an option. For example: set x "-weight bold" font configure my_font $x This errors with: bad option "-weight bold" must be ...
Jun 24, 2010 #2 Bong Programmer Joined Dec 22, 1999 Messages 2,063 Location US That's just what eval is for: Code: set x "-weight bold" eval "font configure my_font $x" _________________ Bob Rashkin Upvote 0 Downvote
That's just what eval is for: Code: set x "-weight bold" eval "font configure my_font $x" _________________ Bob Rashkin