pack

Why can't my Tkinter frames be on the same level

Why can't my Tkinter frames be on the same level Question: I am testing for a separate project I am working on and in that, I am trying to get two Tkinter frames to be aligned with one another. However, my frames are on two different levels. I have looked at the grid format but …

Total answers: 2

Why I get this output while I trying to print this packed struct?

Why I get this output while I trying to print this packed struct? Question: I running this code in python: import struct res = struct.pack(‘hhl’, 1, 2, 3) print(res) and I get the following output: b’x01x00x02x00x00x00x00x00x03x00x00x00x00x00x00x00′ but I don’t understand why this is the output? after all, the format h means 2 bytes, and the …

Total answers: 1