]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wx/lib/imagebrowser.py
MaskedEdit patch from Will Sadkin:
[wxWidgets.git] / wxPython / wx / lib / imagebrowser.py
index 942eb877f43ccb9853db0c15345757e6db7c8116..576d0bcfbd9232f2ba76b354e3f3edd24611041c 100644 (file)
@@ -82,7 +82,7 @@ class ImageView(wx.Window):
         brush = wx.Brush(wx.NamedColour(self.back_color), wx.SOLID)
         dc.SetBrush(brush)
         dc.SetPen(wx.Pen(wx.NamedColour(self.border_color), 1))
-        dc.DrawRectangle((0, 0), (self.image_sizex, self.image_sizey))
+        dc.DrawRectangle(0, 0, self.image_sizex, self.image_sizey)
 
     def DrawImage(self, dc):
         try:
@@ -113,7 +113,7 @@ class ImageView(wx.Window):
         image.Rescale(iwidth, iheight)      # rescale to fit the window
         image.ConvertToBitmap()
         bmp = image.ConvertToBitmap()
-        dc.DrawBitmap(bmp, (diffx, diffy))        # draw the image to window
+        dc.DrawBitmap(bmp, diffx, diffy)        # draw the image to window
 
 
 class ImageDialog(wx.Dialog):
@@ -124,7 +124,7 @@ class ImageDialog(wx.Dialog):
         self.y_pos = 20
         self.delta = 20
 
-        size = wx.Size(80, 25)
+        size = wx.Size(80, -1)
 
         self.set_dir = os.getcwd()
         self.set_file = None
@@ -330,7 +330,7 @@ class FindFiles:
             if pattern.match(value) != None:
                 filelist.append(i)
 
-            self.files = filelist
+        self.files = filelist
 
     def MakeRegex(self, pattern):
         import re