def __DoEnterComment(self): """ Popup a text dialog so that the user can enter a comment for the log """ song = viewmgr.Get()._selectedSong if song: dlg = wx.TextEntryDialog(self, 'Enter a comment for the log', 'Enter comment', '') if dlg.ShowModal() == wx.ID_OK and dlg.GetValue(): viewmgr.signalAddComment(song, dlg.GetValue())