BruceSherwood / vpython-wx

VPython based on wxPython
Other
70 stars 38 forks source link

window(menus=False) misbehaves on Windows and Ubuntu #36

Closed BruceSherwood closed 10 years ago

BruceSherwood commented 11 years ago

This very simple program works properly:

w = window(menus=True) display(window=w) ball = sphere()

Change to menus=False (which is the default) and the program displays incorrectly on Windows and Ubuntu until and unless you resize the window. There is no problem on a Mac, where menus don't yet work at all.

BruceSherwood commented 11 years ago

Even after setting menus=True there are problems with large width and/or height:

The following program running (at least) on 64-bit Windows 7 (with 64-bit VPython) fails or succeeds depending on the values I choose for window width and height. It shows among other things that maximizing the window isn't the fundamental problem, rather it does indeed have to do with choosing large values for width and/or height (I didn't map out the full range of success and failure).

from visual import *

On Windows 7 with 64-bit VPython and screen that is 2498 wide, 1558 high

w_width = 1800 # works with 1800, fails with 1900 w_height = 1500 w = window(menus=True, width=w_width, height=w_height) display(window=w, width=w_width-100, height=w_height-150) sphere()

BruceSherwood commented 10 years ago

Seemed to be fixed by commit of 2014 July 6.