Exemplo n.º 1
0
 def setup_movdetails(self):
     self.mov_name = wx.StaticText(self, wx.ID_ANY, _("(My Movie \nName) Year Genre"), style=wx.ALIGN_CENTER)
     ######  Image Handling
     img = wx.EmptyImage(self.PhotoMaxSize,self.PhotoMaxSize)
     self.mov_poster = wx.StaticBitmap(self, wx.ID_ANY,
                                      wx.BitmapFromImage(img))
     self.set_scale_img(movieicon.getmovies_iconImage())
     ## Excellent Link for doing above : http://www.blog.pythonlibrary.org/2008/05/23/wxpython-embedding-an-image-in-your-title-bar/
     ######
     self.mov_plot = wx.TextCtrl(self, wx.ID_ANY, _(""), style=wx.TE_READONLY|wx.TE_MULTILINE)
     self.imdb_rating = wx.StaticText(self, wx.ID_ANY, _("IMDb Rating"))
     self.imdb_rating_val = wx.StaticText(self, wx.ID_ANY, _("-/10"))
     self.starcast = wx.StaticText(self, wx.ID_ANY, _("Starcast"))
     self.starcast_val = wx.TextCtrl(self, wx.ID_ANY, _(""),style=wx.TE_READONLY)
     self.rt_rating = wx.StaticText(self, wx.ID_ANY, _(" Rotten Tomatoes\n       Rating"))
     self.rt_rating_val = wx.StaticText(self, wx.ID_ANY, _("-/10"))
     self.director = wx.StaticText(self, wx.ID_ANY, _("Director"))
     self.director_val = wx.TextCtrl(self, wx.ID_ANY, _(""),style=wx.TE_READONLY)
     self.imdb_votes = wx.StaticText(self, wx.ID_ANY, _("Vote Count"))
     self.imdb_votes_val = wx.StaticText(self, wx.ID_ANY, _(""))
     self.producer = wx.StaticText(self, wx.ID_ANY, _("Producer"))
     self.producer_val = wx.TextCtrl(self, wx.ID_ANY, _(""),style=wx.TE_READONLY)
     self.review_title = wx.StaticText(self, wx.ID_ANY, _("Reviews"), style=wx.ALIGN_CENTER_HORIZONTAL)
     self.reviews_list = wx.ListBox(self, wx.ID_ANY, style=wx.LB_MULTIPLE)
     self.Bind(wx.EVT_LISTBOX_DCLICK,self.double_click_review_list,self.reviews_list)
Exemplo n.º 2
0
 def clean_details(self):
     self.mov_name.SetLabel("Information Missing")
     self.imdb_rating_val.SetLabel("")
     self.imdb_votes_val.SetLabel("")
     self.rt_rating_val.SetLabel("")
     self.mov_plot.Clear()
     self.director_val.Clear()
     self.producer_val.Clear()
     self.starcast_val.Clear()
     self.reviews_list.Clear()
     self.set_scale_img(movieicon.getmovies_iconImage())