Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/timelinelib/wxgui/components/categorychoice.py
diff options
context:
space:
mode:
Diffstat (limited to 'timelinelib/wxgui/components/categorychoice.py')
-rw-r--r--timelinelib/wxgui/components/categorychoice.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/timelinelib/wxgui/components/categorychoice.py b/timelinelib/wxgui/components/categorychoice.py
index 1b00362..6901719 100644
--- a/timelinelib/wxgui/components/categorychoice.py
+++ b/timelinelib/wxgui/components/categorychoice.py
@@ -18,11 +18,11 @@
import wx
-from timelinelib.wxgui.dialogs.categoryeditor import WxCategoryEdtiorDialog
+from timelinelib.db.exceptions import TimelineIOError
+from timelinelib.db.objects.category import sort_categories
from timelinelib.wxgui.dialogs.categorieseditor import CategoriesEditor
+from timelinelib.wxgui.dialogs.categoryeditor import WxCategoryEdtiorDialog
import timelinelib.wxgui.utils as gui_utils
-from timelinelib.db.interface import TimelineIOError
-from timelinelib.domain.category import sort_categories
class CategoryChoice(wx.Choice):
@@ -59,7 +59,7 @@ class CategoryChoice(wx.Choice):
selection = self.GetSelection()
category = self.GetClientData(selection)
return category
-
+
def on_choice(self, e):
new_selection_index = e.GetSelection()
if new_selection_index > self.last_real_category_index:
@@ -73,7 +73,7 @@ class CategoryChoice(wx.Choice):
def _add_category(self):
def create_category_editor():
- return WxCategoryEdtiorDialog(self, _("Add Category"),
+ return WxCategoryEdtiorDialog(self, _("Add Category"),
self.timeline, None)
def handle_success(dialog):
if dialog.GetReturnCode() == wx.ID_OK:
@@ -97,4 +97,4 @@ class CategoryChoice(wx.Choice):
gui_utils.handle_db_error_in_dialog(self, e)
gui_utils.show_modal(create_categories_editor,
gui_utils.create_dialog_db_error_handler(self),
- handle_success)
+ handle_success)