From a2a0d6fb4907d9282c2f45a00a1e51ce23602421 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sun, 7 Sep 2014 01:38:10 +0300 Subject: [PATCH] Add missing icon on options panel --- ToDo | 1 - youtube_dl_gui/OptionsFrame.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ToDo b/ToDo index 2a4f415..8ca680c 100644 --- a/ToDo +++ b/ToDo @@ -1,4 +1,3 @@ -* Add missing icon on options frame * Refactor my ugly code * Redesign options window diff --git a/youtube_dl_gui/OptionsFrame.py b/youtube_dl_gui/OptionsFrame.py index ab2b944..0275285 100644 --- a/youtube_dl_gui/OptionsFrame.py +++ b/youtube_dl_gui/OptionsFrame.py @@ -128,6 +128,11 @@ class OptionsFrame(wx.Frame): self.opt_manager = opt_manager + # Add icon + icon = get_icon_path() + if icon is not None: + self.SetIcon(wx.Icon(icon, wx.BITMAP_TYPE_PNG)) + # Create GUI panel = wx.Panel(self) notebook = wx.Notebook(panel)