From 4396434d14a166c6b2d9569517779fc718915dea Mon Sep 17 00:00:00 2001 From: pin Date: Mon, 14 Jun 2010 08:50:51 +0000 Subject: [PATCH 1/1] =?utf8?q?Affichage=20du=20titre=20dans=20l'=C3=A9cran?= =?utf8?q?=20d'accueil.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@230 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/minwii/widgets/home.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/minwii/widgets/home.py b/src/minwii/widgets/home.py index 44c101f..429342b 100755 --- a/src/minwii/widgets/home.py +++ b/src/minwii/widgets/home.py @@ -66,7 +66,7 @@ class Home(object, Table) : self.td(self.browseButton,colspan=2, style = STYLE_RIGHT_COL) self.tr() - caption = os.path.basename(self.songFile) + caption = '' if not self.songFile else FileOpenDialog.getSongTitle(self.songFile) self.songTitle = self.createLabel(caption) st = STYLE_RIGHT_COL.copy() del st['padding_top'] @@ -143,7 +143,8 @@ class Home(object, Table) : def handle_file_browser_closed(self, dlg) : if dlg.value and os.path.isfile(dlg.value): self.remove(self.songTitle) - self.songTitle = self.createLabel(os.path.basename(dlg.value)) + title = FileOpenDialog.getSongTitle(dlg.value) + self.songTitle = self.createLabel(title) self.td(self.songTitle, col=1, row=1, style=STYLE_RIGHT_COL) self.songFile = dlg.value self.playButton.disabled = False -- 2.20.1