I can not figure out how to define a hex number 80
I'm using this:
set hexb [binary format H* 80]
I am sending $hexb as part of a string to serial port (see program below). I put on serial port monitor and see 3F as the data. Don't know why 80 is not being sent, yet [format %2X [scan $hexb %c]]...
Is there any way to use the root window in a looping fashion like my app is doing witha secondary window? I can't even get past the tkwait because tkwait is waiting for the destroy of the window and once I do that the app is also destroyed.
Thanks Bong. Everything was working ok until I commented the tk_messageBox. Now the 2nd time and subsequent times that the entry window is opened there is no focus and the box. This sits in an endless loop sending some data to the com port. How do I get the focus on the entry window?
set...
Thanks sh00der. Before I saw your post I had figured out the tkwait but a little different than your example.
Here's the code now and a couple of questions.
__________________________________________
# set max length
set length 2
# validation proc
proc vcmd {length d s S} {...
I am just statrting to learn tk. I have some experience with tcl on linux and now I am working on winxp.
All I want to do is enter some text and have it echoed back with tk_messageBox. The problem: the entry box appears, but does not wait for me to enter any text. Do I need a bind to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.