Look at my code on comments .... https://github.com/elvis124/Ask-doctor to see how I have updated my window size ...so that it opens in the same size and position
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+unsubscribe@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/83283f7d-6fbc-4c99-a0c9-b311b6742c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Look at my code on comments .... https://github.com/elvis124/Ask-doctor to see how I have updated my window size ...so that it opens in the same size and position
On 5 Apr 2019 06:45, "Elliot Garbus" <elli...@cox.net> wrote:
I wanted my program to save its size and position on close, and reopen with the same size and position.--I've learned a few things along the way. Here is the my sample code, to test this capability: https://github.com/ElliotGarbus/KivyWindowSizeKey Learnings:
- Windows Size and Position are not valid at on_stop(). The window size and position is not correct at this time so these value must be captured earlier. The Kivy Window object has an event, on_request_close, binding to this event I can consistently capture size and position. This has been verified on Windows and Linux.
- Needed to use configparser and Config.set() prior to loading Kivy.app I needed to use python's config object to access the .ini file so I could set the Window Size and position prior to loading Kivy.app. Without doing this, a blank window would draw as defined by the Kivy settings, then jump to the place defined in on_start
- The Window event on_draw is called on resize and position change on Windows but not Linux. On Linux on_draw is only called on resize
Note: This is a simple test program. There are 2 text input fields, I have not done any validation on the input. Integers must be entered for proper operation. Enter the desired window size and press the button, and the window will resize. On some machines the the kivy metric dp() will result in the same size, on other machines (Mac for example) the size will be different.I hope this helps somebody.
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/83283f7d-6fbc-4c99-a0c9-b311b6742c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CANPXmku8%3DCGuQdAU5XY6EkddGp_9osKNsfHqYOdQKvt_C5becw%40mail.gmail.com.
Look at my code on comments .... https://github.com/elvis124/Ask-doctor to see how I have updated my window size ...so that it opens in the same size and position
On 5 Apr 2019 06:45, "Elliot Garbus" <elli...@cox.net> wrote:
I wanted my program to save its size and position on close, and reopen with the same size and position.--I've learned a few things along the way. Here is the my sample code, to test this capability: https://github.com/ElliotGarbus/KivyWindowSizeKey Learnings:
- Windows Size and Position are not valid at on_stop(). The window size and position is not correct at this time so these value must be captured earlier. The Kivy Window object has an event, on_request_close, binding to this event I can consistently capture size and position. This has been verified on Windows and Linux.
- Needed to use configparser and Config.set() prior to loading Kivy.app I needed to use python's config object to access the .ini file so I could set the Window Size and position prior to loading Kivy.app. Without doing this, a blank window would draw as defined by the Kivy settings, then jump to the place defined in on_start
- The Window event on_draw is called on resize and position change on Windows but not Linux. On Linux on_draw is only called on resize
Note: This is a simple test program. There are 2 text input fields, I have not done any validation on the input. Integers must be entered for proper operation. Enter the desired window size and press the button, and the window will resize. On some machines the the kivy metric dp() will result in the same size, on other machines (Mac for example) the size will be different.I hope this helps somebody.
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/83283f7d-6fbc-4c99-a0c9-b311b6742c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Look at my code on comments .... https://github.com/elvis124/Ask-doctor to see how I have updated my window size ...so that it opens in the same size and position
On 5 Apr 2019 06:45, "Elliot Garbus" <elli...@cox.net> wrote:
I wanted my program to save its size and position on close, and reopen with the same size and position.--I've learned a few things along the way. Here is the my sample code, to test this capability: https://github.com/ElliotGarbus/KivyWindowSizeKey Learnings:
- Windows Size and Position are not valid at on_stop(). The window size and position is not correct at this time so these value must be captured earlier. The Kivy Window object has an event, on_request_close, binding to this event I can consistently capture size and position. This has been verified on Windows and Linux.
- Needed to use configparser and Config.set() prior to loading Kivy.app I needed to use python's config object to access the .ini file so I could set the Window Size and position prior to loading Kivy.app. Without doing this, a blank window would draw as defined by the Kivy settings, then jump to the place defined in on_start
- The Window event on_draw is called on resize and position change on Windows but not Linux. On Linux on_draw is only called on resize
Note: This is a simple test program. There are 2 text input fields, I have not done any validation on the input. Integers must be entered for proper operation. Enter the desired window size and press the button, and the window will resize. On some machines the the kivy metric dp() will result in the same size, on other machines (Mac for example) the size will be different.I hope this helps somebody.
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
To post to this group, send email to kivy-...@googlegroups.com.
Visit this group at https://groups.google.com/group/kivy-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/83283f7d-6fbc-4c99-a0c9-b311b6742c90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Look at my code on comments .... https://github.com/elvis124/Ask-doctor to see how I have updated my window size ...so that it opens in the same size and position
On 5 Apr 2019 06:45, "Elliot Garbus" <elli...@cox.net> wrote:
I wanted my program to save its size and position on close, and reopen with the same size and position.--I've learned a few things along the way. Here is the my sample code, to test this capability: https://github.com/ElliotGarbus/KivyWindowSizeKey Learnings:
- Windows Size and Position are not valid at on_stop(). The window size and position is not correct at this time so these value must be captured earlier. The Kivy Window object has an event, on_request_close, binding to this event I can consistently capture size and position. This has been verified on Windows and Linux.
- Needed to use configparser and Config.set() prior to loading Kivy.app I needed to use python's config object to access the .ini file so I could set the Window Size and position prior to loading Kivy.app. Without doing this, a blank window would draw as defined by the Kivy settings, then jump to the place defined in on_start
- The Window event on_draw is called on resize and position change on Windows but not Linux. On Linux on_draw is only called on resize
Note: This is a simple test program. There are 2 text input fields, I have not done any validation on the input. Integers must be entered for proper operation. Enter the desired window size and press the button, and the window will resize. On some machines the the kivy metric dp() will result in the same size, on other machines (Mac for example) the size will be different.I hope this helps somebody.
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
Look at my code on comments .... https://github.com/elvis124/Ask-doctor to see how I have updated my window size ...so that it opens in the same size and position
On 5 Apr 2019 06:45, "Elliot Garbus" <elli...@cox.net> wrote:
I wanted my program to save its size and position on close, and reopen with the same size and position.--I've learned a few things along the way. Here is the my sample code, to test this capability: https://github.com/ElliotGarbus/KivyWindowSizeKey Learnings:
- Windows Size and Position are not valid at on_stop(). The window size and position is not correct at this time so these value must be captured earlier. The Kivy Window object has an event, on_request_close, binding to this event I can consistently capture size and position. This has been verified on Windows and Linux.
- Needed to use configparser and Config.set() prior to loading Kivy.app I needed to use python's config object to access the .ini file so I could set the Window Size and position prior to loading Kivy.app. Without doing this, a blank window would draw as defined by the Kivy settings, then jump to the place defined in on_start
- The Window event on_draw is called on resize and position change on Windows but not Linux. On Linux on_draw is only called on resize
Note: This is a simple test program. There are 2 text input fields, I have not done any validation on the input. Integers must be entered for proper operation. Enter the desired window size and press the button, and the window will resize. On some machines the the kivy metric dp() will result in the same size, on other machines (Mac for example) the size will be different.I hope this helps somebody.
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.