Menu

#83 KeyError: "<bound method Font.Underlined of <timelinelib.wxgui.components.font.Font; proxy of <Swig Object of type 'wxFont *' at 0x8f240f0> >>"

closed
nobody
crash (56)
2015-08-19
2015-08-02
No

Loaded attached timeline file from the File menu.

(file created by way of the timeline component in another wxpython program)

Traceback (most recent call last):
  File "./timelinelib/wxgui/dialogs/mainframe/mainframe.py", line 668, in _mnu_file_open_on_click
    self._open_existing_timeline()
  File "./timelinelib/wxgui/dialogs/mainframe/mainframe.py", line 960, in _open_existing_timeline
    self.controller.open_timeline(dialog.GetPath())
  File "./timelinelib/wxgui/dialogs/mainframe/mainframecontroller.py", line 69, in open_timeline
    self.main_frame.display_timeline(self.timeline)
  File "./timelinelib/wxgui/dialogs/mainframe/mainframe.py", line 710, in display_timeline
    self.main_panel.display_timeline(timeline)
  File "./timelinelib/wxgui/components/mainpanel.py", line 108, in display_timeline
    self._show_new_timeline(timeline)
  File "./timelinelib/wxgui/components/mainpanel.py", line 111, in _show_new_timeline
    self.set_timeline(timeline)
  File "./timelinelib/wxgui/components/mainpanel.py", line 118, in set_timeline
    self.timeline_panel.set_timeline(timeline)
  File "./timelinelib/wxgui/components/timelinepanel.py", line 101, in set_timeline
    self.timeline_canvas.set_timeline(timeline)
  File "./timelinelib/wxgui/components/canvas/timelinecanvas.py", line 62, in set_timeline
    self.controller.set_timeline(timeline)
  File "./timelinelib/wxgui/components/canvas/timelinecanvascontroller.py", line 140, in set_timeline
    self._set_non_null_timeline(timeline)
  File "./timelinelib/wxgui/components/canvas/timelinecanvascontroller.py", line 158, in _set_non_null_timeline
    self._redraw_timeline()
  File "./timelinelib/wxgui/components/canvas/timelinecanvascontroller.py", line 529, in _redraw_timeline
    self.view.redraw_surface(fn_draw)
  File "./timelinelib/wxgui/components/canvas/timelinecanvas.py", line 97, in redraw_surface
    fn_draw(memdc)
  File "./timelinelib/wxgui/components/canvas/timelinecanvascontroller.py", line 517, in fn_draw
    self.drawing_algorithm.draw(dc, self.timeline, self.view_properties, self.config)
  File "./timelinelib/drawing/drawers/default.py", line 113, in draw
    self._perform_drawing(timeline, view_properties)
  File "./timelinelib/drawing/drawers/default.py", line 138, in _perform_drawing
    self._perform_normal_drawing(view_properties)
  File "./timelinelib/drawing/drawers/default.py", line 146, in _perform_normal_drawing
    self._draw_bg(view_properties)
  File "./timelinelib/drawing/drawers/default.py", line 248, in _draw_bg
    self._draw_normal_bg(view_properties)
  File "./timelinelib/drawing/drawers/default.py", line 255, in _draw_normal_bg
    self._draw_minor_strips()
  File "./timelinelib/drawing/drawers/default.py", line 263, in _draw_minor_strips
    self._draw_minor_strip_label(strip_period)
  File "./timelinelib/drawing/drawers/default.py", line 272, in _draw_minor_strip_label
    self._set_minor_strip_font(strip_period)
  File "./timelinelib/drawing/drawers/default.py", line 286, in _set_minor_strip_font
    font.set_minor_strip_text_font(self.config, self.dc)
  File "./timelinelib/wxgui/components/font.py", line 97, in set_minor_strip_text_font
    set_text_font(config.minor_strip_font, dc, force_bold, force_normal)
  File "./timelinelib/wxgui/components/font.py", line 109, in set_text_font
    font = deserialize_font(selectable_font)
  File "./timelinelib/wxgui/components/font.py", line 91, in deserialize_font
    font = Font(int(point_size), int(family), int(style), int(weight), bool_map[underlined], facename, int(encoding), wxcolor)
KeyError: "<bound method Font.Underlined of <timelinelib.wxgui.components.font.Font; proxy of <Swig Object of type 'wxFont *' at 0x8f240f0> >>"

Timeline version: 1.7.0
System version: Linux, hermes, 4.0.0-2-686-pae, #1 SMP Debian 4.0.8-1 (2015-07-11), i686,
Python version: 2.7.10 (default, Jul  1 2015, 10:54:53) [GCC 4.9.2]
wxPython version: 2.8.12.1 (gtk2-unicode)
Locale setting: de_DE UTF-8
Locale sample date: 22.11.3333

Discussion

  • Rickard Lindberg

    Where is the attached timeline file mentioned?

     
  • roger lindberg

    roger lindberg - 2015-08-18

    We have the same report for version 1.7.1 and wxPython version 3.0.

    I think it has to do with Underlined beeing a function but treated as an attribute.

    Timeline version: 1.7.1
    System version: Linux, myworkspace.osslab.lan, 3.16.7-24-desktop, #1 SMP PREEMPT Mon Aug 3 14:37:06 UTC 2015 (ec183cc), x86_64, x86_64
    Python version: 2.7.8 (default, Sep 30 2014, 15:34:38) [GCC]
    wxPython version: 3.0.1.1 gtk2 (classic)
    Locale setting: en_GB UTF-8
    Locale sample date: 22/11/33
    
     
  • roger lindberg

    roger lindberg - 2015-08-19
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB