I noticed, for some reason, when I type in an object width (or height) into the attribute box it changes (sometimes). For example, I set the width of a spinbox to 100 & as soon as I hit enter it changes to 99 ...I set a label width to 500 & it changes to 499...I try 150 & it changes to 151 , but 200 gives 200 and 78 gives 78. It is very annoying to try to space multiple things out evenly when the object is 99 & the grid is 10. Why does the attribute value get changed by Page?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've never seen that. I'll have to have Don speak to those issues. Off the top of my head though, are you in Absolute or Relative mode? I can see that happening in Relative mode, but not normally in Absolute. I have to admit, though, that I don't ever have reason to do anything beyond desktop sized applications.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just verified it. You have to be in Relative mode. I verified that when placing a widget in Absolute mode, and you set the width to, let's say 500, that the width stays at 500. However, when you are in Relative mode, if you set it to, again 500, it could easily turn into 499 or 501. That's part of Relative mode.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-12-06
Ah...thanks again GREG!! Nothing should ever move around on the user touchscreen, so absolute mode it will be.
I bet it is a rounding issue of some sort...guessing that when you enter a value it gets a calculation to some relative position & the position box reads this rel value & reverses the calc to show you the number. So what you enter is only indirectly displayed in the entry box?? My guess.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm glad it worked for you. You can always use the font dialog to set the font name, and other attributes and then set to the largest font size. Then go into the font Entry box and change the font size.
Believe me, it's easy to forget some of the little tricks and tips for PAGE and Tkinter. I keep a text file on my desktop at all times with "interesting" tips.
I spoke to Don in email this morning. He is in the middle of something for the next release, but said that he would look into the issue for you. I verified that in the latest alpha of the next version that this trick does not work, so I will be working closely with Don on making sure that there is a way to "cheat" the system to do what's needed to make the design process the easiest for all our users.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To assist you when you are designing your form, there is a lock radio button set which will lock the position of the widget or container (frame) on the form. If you are old like me and you have a tendency to accidentally move widgets during the design process, you can always click the locked Yes radiobutton to lock the position of the widget(s).
Actually, when using relative mode, the position is calculated based on the size of the container, be it the form or a frame. It's a ratio. It's pretty complicated. So you are mostly correct in your supposition.
Again, if you want the widgets to resize with the form, then you Relative mode. If you want things to be fixed (as in a kiosk application) use Absolute. If you are extremely picky about where your widgets are at all time, use the Absolute mode. ;o)
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-12-06
Note that the abs/rel mode is not picked anywhere in the attribute list (I was looking). It is set in the main menu preference
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That is correct. There are actually two places that you can set the mode. The first, as you said, is on the main menu bar. It is a flat button that allows you to quickly switch modes. The second is in the Preferences menu ( File | Preferences ). While you have the option to use the button on the main menu windows, it's best to set your preference in the Preference menu. Then you can use the main window button to switch things as needed between projects without changing the default.
Greg
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I noticed, for some reason, when I type in an object width (or height) into the attribute box it changes (sometimes). For example, I set the width of a spinbox to 100 & as soon as I hit enter it changes to 99 ...I set a label width to 500 & it changes to 499...I try 150 & it changes to 151 , but 200 gives 200 and 78 gives 78. It is very annoying to try to space multiple things out evenly when the object is 99 & the grid is 10. Why does the attribute value get changed by Page?
I've never seen that. I'll have to have Don speak to those issues. Off the top of my head though, are you in Absolute or Relative mode? I can see that happening in Relative mode, but not normally in Absolute. I have to admit, though, that I don't ever have reason to do anything beyond desktop sized applications.
Greg
I just verified it. You have to be in Relative mode. I verified that when placing a widget in Absolute mode, and you set the width to, let's say 500, that the width stays at 500. However, when you are in Relative mode, if you set it to, again 500, it could easily turn into 499 or 501. That's part of Relative mode.
For a fairly good discussion about the modes, how they act and why they are different, you might want to look at https://www.pythontutorial.net/tkinter/tkinter-place/ . That site should help you understand.
Greg
Ah...thanks again GREG!! Nothing should ever move around on the user touchscreen, so absolute mode it will be.
I bet it is a rounding issue of some sort...guessing that when you enter a value it gets a calculation to some relative position & the position box reads this rel value & reverses the calc to show you the number. So what you enter is only indirectly displayed in the entry box?? My guess.
I'm glad it worked for you. You can always use the font dialog to set the font name, and other attributes and then set to the largest font size. Then go into the font Entry box and change the font size.
Believe me, it's easy to forget some of the little tricks and tips for PAGE and Tkinter. I keep a text file on my desktop at all times with "interesting" tips.
I spoke to Don in email this morning. He is in the middle of something for the next release, but said that he would look into the issue for you. I verified that in the latest alpha of the next version that this trick does not work, so I will be working closely with Don on making sure that there is a way to "cheat" the system to do what's needed to make the design process the easiest for all our users.
Greg
To assist you when you are designing your form, there is a lock radio button set which will lock the position of the widget or container (frame) on the form. If you are old like me and you have a tendency to accidentally move widgets during the design process, you can always click the locked Yes radiobutton to lock the position of the widget(s).
Actually, when using relative mode, the position is calculated based on the size of the container, be it the form or a frame. It's a ratio. It's pretty complicated. So you are mostly correct in your supposition.
Again, if you want the widgets to resize with the form, then you Relative mode. If you want things to be fixed (as in a kiosk application) use Absolute. If you are extremely picky about where your widgets are at all time, use the Absolute mode. ;o)
Greg
Note that the abs/rel mode is not picked anywhere in the attribute list (I was looking). It is set in the main menu preference
That is correct. There are actually two places that you can set the mode. The first, as you said, is on the main menu bar. It is a flat button that allows you to quickly switch modes. The second is in the Preferences menu ( File | Preferences ). While you have the option to use the button on the main menu windows, it's best to set your preference in the Preference menu. Then you can use the main window button to switch things as needed between projects without changing the default.
Greg