If resizing a panel containing aquabutton I get this exception when size is getting small.
root - ERROR - app_base.py - 343 - Traceback (most recent call last):
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\lib\agw\aquabutton.py", line 348, in OnPaint
self._storedBitmap = wx.EmptyBitmapRGBA(width, height)
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\_gdi.py", line 1009, in EmptyBitmapRGBA
return _gdi_._EmptyBitmapRGBA(width, height, red, green, blue, alpha)
ValueError: Width and height must be greater than zero
I usually do something like (max(width,1), max(height,1))
···
On 11/23/11 11:37 PM, werner wrote:
If resizing a panel containing aquabutton I get this exception when size
is getting small.
root - ERROR - app_base.py - 343 - Traceback (most recent call last):
File
"c:\python27\lib\site-packages\wx-2.9.2-msw\wx\lib\agw\aquabutton.py",
line 348, in OnPaint
self._storedBitmap = wx.EmptyBitmapRGBA(width, height)
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\_gdi.py", line 1009,
in EmptyBitmapRGBA
return _gdi_._EmptyBitmapRGBA(width, height, red, green, blue, alpha)
ValueError: Width and height must be greater than zero
If resizing a panel containing aquabutton I get this exception when size is
getting small.
root - ERROR - app_base.py - 343 - Traceback (most recent call last):
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\lib\agw\aquabutton.py",
line 348, in OnPaint
self._storedBitmap = wx.EmptyBitmapRGBA(width, height)
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\_gdi.py", line 1009, in
EmptyBitmapRGBA
return _gdi_._EmptyBitmapRGBA(width, height, red, green, blue, alpha)
ValueError: Width and height must be greater than zero
If resizing a panel containing aquabutton I get this exception when size is
getting small.
root - ERROR - app_base.py - 343 - Traceback (most recent call last):
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\lib\agw\aquabutton.py",
line 348, in OnPaint
self._storedBitmap = wx.EmptyBitmapRGBA(width, height)
File "c:\python27\lib\site-packages\wx-2.9.2-msw\wx\_gdi.py", line 1009, in
EmptyBitmapRGBA
return _gdi_._EmptyBitmapRGBA(width, height, red, green, blue, alpha)
ValueError: Width and height must be greater than zero