Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • blm_dev_chan
  • release/1.4.0 protected
  • widgets_draw
  • return_of_melodic_demo
  • task_cleanup
  • mixer2
  • dx/fb-save-restore
  • dx/dldldld
  • fpletz/flake
  • dx/jacksense-headset-mic-only
  • release/1.3.0 protected
  • fil3s-limit-filesize
  • allow-reloading-sunmenu
  • wifi-json-error-handling
  • app_text_viewer
  • shoegaze-fps
  • media_has_video_has_audio
  • fil3s-media
  • more-accurate-battery
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.2.0+rc1
  • v1.1.1
  • v1.1.0
  • v1.1.0+rc1
  • v1.0.0
  • v1.0.0+rc6
  • v1.0.0+rc5
  • v1.0.0+rc4
  • v1.0.0+rc3
  • v1.0.0+rc2
  • v1.0.0+rc1
34 results

application.py

Blame
    • moon2's avatar
      d3e17296
      provide default implementation of draw for application class · d3e17296
      moon2 authored
      For all other methods the beginner's rule of thumb is "when in doubt,
      call `super().methodname()` when overriding, but for draw it gives a
      cryptic @abstractmethod error:
      
      File "/flash/sys/st3m/ui/view.py", line 163, in draw
      TypeError: function takes 0 positional arguments but 2 were given
      
      This is not very beginner friendly, so we're providing a NOP default.
      d3e17296
      History
      provide default implementation of draw for application class
      moon2 authored
      For all other methods the beginner's rule of thumb is "when in doubt,
      call `super().methodname()` when overriding, but for draw it gives a
      cryptic @abstractmethod error:
      
      File "/flash/sys/st3m/ui/view.py", line 163, in draw
      TypeError: function takes 0 positional arguments but 2 were given
      
      This is not very beginner friendly, so we're providing a NOP default.