Reverted to old method names/signatures for wx.DC, updated lib and
demo to match. Also fixed some deprecation warnings. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -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):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user