- Posts: 1916
- Thank you received: 394
Please Log in or Create an account to join the conversation.
Yesnewbynobi wrote: Did you want it to show like this?
That was the crucial hint. I didn't know that. If I only change the file name, then all works as expected!newbynobi wrote: If we do not specify a component name, the name of the glade file will be taken.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
“The formatting operations described here exhibit a variety of quirks that lead to a number of common errors (such as failing to display tuples and dictionaries correctly).
Using the newer formatted string literals or the str.format() interface helps avoid these errors. These alternatives also provide more powerful, flexible and extensible approaches to formatting text.”
Please Log in or Create an account to join the conversation.
Shame on me but I like C-style formatting :silly:newbynobi wrote:
Do not use:but use:Code:lbl_text = "%.3f m" % (travel)Both are working formats, but the recommended one will it make more easy to transfer later to python3. And it is also faster and will not cause strange errors if you use tupple or list objekcts.Code:lbl_text = "{0:.3f} m".format(travel)
newbynobi wrote:
I will use part of your code
I will use my timer panel on custom Box 4 and you travel/counter panel on the setup page.
Please Log in or Create an account to join the conversation.