Menu

#17 application control of window attributes is buggy

failure
closed-fixed
display (14)
5
2000-05-27
2000-05-24
No

A program like this may cause the window to move around or be unresponsive:

from visual import *
i=0
while 1:
scene.title = "Number %d" % i
i = i + 1

There are other manifestations of this problem. The problem is that when updating the window under the program's control, Visual doesn't distinguish between the attributes the program has changed (title in this case) and the attributes it hasn't.

Discussion

  • David Scherer

    David Scherer - 2000-05-25

    If you use any of width, height, x, or y outside the display constructor, you might encounter this problem.

    A workaround for many programs that don't change these attributes dynamically is simply to move them into the constructor.

     
  • David Scherer

    David Scherer - 2000-05-25
    • assigned_to: nobody --> dscherer
     
  • David Scherer

    David Scherer - 2000-05-27

    I have restructured the way that the x, y, width, and height attributes work to permit a more robust implementation. In addition, I've totally disabled changing these attributes while a window is visible. The possible advantages of that capability do not seem to outweigh the large number of platform-specific problems we are likely to hit implementing it.

     
  • David Scherer

    David Scherer - 2000-05-27
    • status: open --> closed-fixed
     
  • David Scherer

    David Scherer - 2000-05-27

    I have restructured the way that the x, y, width, and height attributes work to permit a more robust implementation. In addition, I've totally disabled changing these attributes while a window is visible. The possible advantages of that capability do not seem to outweigh the large number of platform-specific problems we are likely to hit implementing it.

     
  • David Scherer

    David Scherer - 2000-05-28

    I have restructured the way that the x, y, width, and height attributes work to permit a more robust implementation. In addition, I've totally disabled changing these attributes while a window is visible. The possible advantages of that capability do not seem to outweigh the large number of platform-specific problems we are likely to hit implementing it.

     
MongoDB Logo MongoDB