import wpf
from System.Windows import Application, Window,MessageBox
from Main import *
from Sign_Up import *
import System
from System.Windows.Controls import *
from System.Windows.Input import *
from System import Uri
from System.Windows.Media.Imaging import BitmapImage
from System.Windows.Media import ImageBrush
class MyWindow(Window):
def __init__(self):
wpf.LoadComponent(self, 'Sign_In.xaml')
brush = ImageBrush()
image = Image()
image.Source = BitmapImage(Uri("C:\Users\Chen\Pictures\1-150511225359.jpg"))
brush.ImageSource = image.Source
self.SignUpGrid.Background = brush
I tried setting the background image of a window in wpf IronPython and I keep getting syntax errors.