/[gnue]/gnue-forms/src/uidrivers/win32/widgets/_base.py
ViewVC logotype

Diff of /gnue-forms/src/uidrivers/win32/widgets/_base.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.21 by btami, Tue Jul 1 18:36:28 2003 UTC revision 1.22 by btami, Tue Jul 1 19:13:37 2003 UTC
# Line 407  class Win32Image(Win32Base): Line 407  class Win32Image(Win32Base):
407            
408    def SetValue(self, value):    def SetValue(self, value):
409      width, height = value.size      width, height = value.size
410        win32gui.SetWindowPos(self._hwnd, 0, 0, 0, 0, 0, win32con.SWP_NOMOVE | win32con.SWP_NOZORDER)
411      if width>1:      if width>1:
412        win32gui.SetWindowPos(self._hwnd, 0, 0, 0, width, height, win32con.SWP_NOMOVE | win32con.SWP_NOZORDER)        win32gui.SetWindowPos(self._hwnd, 0, 0, 0, width, height, win32con.SWP_NOMOVE | win32con.SWP_NOZORDER)
413        self.dib = ImageWin.Dib(value)        self.dib = ImageWin.Dib(value)
     else:  
       win32gui.SetWindowPos(self._hwnd, 0, 0, 0, 0, 0, win32con.SWP_NOMOVE | win32con.SWP_NOZORDER)  
414    
415    
416  #  #

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26