示例#1
0
 def InitializeComponent(self, skin):
     #set up the data model
     self.dataModel = DataModel(self)
     w = Window()
     w.Show()
     w.Title = "IronTunes"
     w.DataContext = self.dataModel
     w.Content = LoadXaml(skin)
     #w.SizeToContent = SizeToContent.WidthAndHeight
     self.mywindow = IronTunesWindow(self.dataModel)
     self.mywindow.enliven(w)
示例#2
0
class IronTunesApp(Application):  #namespace
    def InitializeComponent(self, skin):
        #set up the data model
        self.dataModel = DataModel(self)
        w = Window()
        w.Show()
        w.Title = "IronTunes"
        w.DataContext = self.dataModel
        w.Content = LoadXaml(skin)
        #w.SizeToContent = SizeToContent.WidthAndHeight
        self.mywindow = IronTunesWindow(self.dataModel)
        self.mywindow.enliven(w)

    @staticmethod
    def RealEntryPoint(skin):
        app = IronTunesApp()
        app.InitializeComponent(skin)
        app.Run()
示例#3
0
class IronTunesApp(Application): #namespace
    
    def InitializeComponent(self, skin):
        #set up the data model
        self.dataModel = DataModel(self)
        w = Window()
        w.Show()
        w.Title = "IronTunes"
        w.DataContext = self.dataModel
        w.Content = LoadXaml(skin)
        #w.SizeToContent = SizeToContent.WidthAndHeight
        self.mywindow = IronTunesWindow(self.dataModel)
        self.mywindow.enliven(w)
        
    @staticmethod
    def RealEntryPoint(skin):
        app = IronTunesApp()
        app.InitializeComponent(skin)
        app.Run()
示例#4
0
 def InitializeComponent(self, skin):
     #set up the data model
     self.dataModel = DataModel(self)
     w = Window()
     w.Show()
     w.Title = "IronTunes"
     w.DataContext = self.dataModel
     w.Content = LoadXaml(skin)
     #w.SizeToContent = SizeToContent.WidthAndHeight
     self.mywindow = IronTunesWindow(self.dataModel)
     self.mywindow.enliven(w)