question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR: self.get_widgets()[next_widget_num] is None

See original GitHub issue

Updated to v0.1.4

Shifting focus through widgets, first cycle is fine, however py_cui program crashes and returns this error upon the second cycle.

self.get_widgets()[next_widget_num] is None.

Terminal shows this after crash

File "/usr/lib/python3.9/site-packages/py_cui/__init__.py", line 316, in start
   curses.wrapper(self._draw)
 File "/usr/lib/python3.9/curses/__init__.py", line 94, in wrapper
   return func(stdscr, *args, **kwds)
 File "/usr/lib/python3.9/site-packages/py_cui/__init__.py", line 1679, in _draw
   self._cycle_widgets()
 File "/usr/lib/python3.9/site-packages/py_cui/__init__.py", line 1123, in _cycle_widgets
   if self.get_widgets()[next_widget_num] is None:

Any ideas? @PabloLec

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
PabloLeccommented, Dec 4, 2021

Awesome @PabloLec Terrific work

Does this fix #121 ?

Yes indeed! I didn’t see that issue. Good call, I’ll add it in the PR.

1reaction
voryzencommented, Dec 4, 2021

Awesome @PabloLec Terrific work

Does this fix #121 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

NoneType Error self.widget.insert - python - Stack Overflow
I am trying to have an output frame in my application. When I run it i get the error: NoneType object has no...
Read more >
Serenity Guide | PDF | Microsoft Sql Server - Scribd
This error might mean that you don't have SQL Server Local DB 2012 installed. ... admin is a special user in Serene, as...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found