Input bar at console bottom in C

Window bottom Some applications like vim, mutt, aptitude contain a top window section for output and a bottom section for the user to type in or for status display. (Suppose there is one child...

Python TUI libs

I'm writing a small sudoku game/solver in Linux using python with TUI (not GUI, that's just lame) just for fun. My question is, which lib is better (by that I mean easier to handle, better...

Python calling method in class

I'm punching way above my weight here, but please bear with this Python amateur. I'm a PHP developer by trade and I've hardly touched this language before. What I'm trying to do is call a method...

main function call fails in python

I wrote the following code that creates a layout and displays some text in the layout. Next the layout is displayed on the console screen using raw display module from urwid library. However...

urwid listboxes won't scroll

import urwid palette = [('header', 'white', 'black'), ('reveal focus', 'black', 'dark cyan', 'standout'),] content = urwid.SimpleListWalker([ urwid.AttrMap(w, None, 'reveal focus') for w...

What Options Are There for a Python TUI Backend?

I need to build a python TUI for a project that I am working on. I do not need advice suggestion about the actual TUI libraries out there (like ncurses/npyscreen/Urwid/etc) as my team has already...

Python ABC Multiple Inheritance

I think the code will explain the problem better than I can do with words. Here is the code in my_abc.py: from abc import ABCMeta, abstractmethod class MyABC(object): __metaclass__ =...

Making python terminal user interface

I'm trying to make terminal user interface with python which I will use it as post installation script for min linux os. But I don't want to use ncurses or urwid because it feels like overkill....

Urwid: make cursor invisible

I'm using urwid, which is a Python "framework" for designing terminal user interfaces in ncurses. There's one thing though that I'm not able to do in urwid that was easy in curses - make the...

ImportError: No module named 'thread'

when I run mitmproxy command in command line, I get the following error. % mitmproxy Traceback (most recent call last): File "/usr/local/bin/mitmproxy", line 7, in <module> from...

Python. How to print text to console as hyperlink?

I'm working on a console application. My application uses urwid lib. In some cases, I need to show very long hyperlinks as short text inside table columns. I want to open links in the browser when...

hangups in windows with cygwin not working

hangups in windows not working.. cygwin is also installed NameError: name 'fcntl' is not defined Traceback (most recent call last): File...

urwid changing a display attribute

I am creating a configurator that lets users choose from a set of legal values. For each legal value I create a Choice (which is essentially a MenuButton). If the user selects a Choice, then the...

Cannot use pudb for multiprocessing

I am trying to use pudb to debug with multiprocessing, but I encounter error as below: Code: def worker(): i = 0 while i < 10: pudb.set_trace() i = i + 1 ...

How to change key mapping for urwid widget navigation?

How can I set/change the CommandMap in a SimpleFocusListWalker? 'up' and 'down' keystrokes are associated with changing the focus by default. I'd like to modify these to something else. Is this...

How do you make buttons of the python library "urwid" look pretty?

The default appearance of a button in urwid is very functional, but in my eyes not very pretty. It can also be irritating when several buttons are side by side in a row. How can I achieve that a...

'NameError: name 'fcntl' is not defined' when using urwid on windows

So I just installed Urwid and as a test tried running the Urwid equivalent of a basic print command, as given as an example on the Urwid website tutorial. I received an error message. I tried...

Installing mitmproxy on Windows Subsystem for Linux (WSL)

I've been using Fiddler to modify a HTTPS response sent by the server which has been initiated by a POST request of the client which worked fine. Using Java on Windows I want to implement this...

KeyError: 'collectstatic' When deploying the Django application to pythonanywhere

During the implementation of my Django application on pythonanywhere for the first time I encountered such an error. Previous applications with a very similar structure were able to be implemented...

How can I create an asynchronous program with urwid and asyncio?

I want to build a chatroom with aiortc. Frist of all, I want to build a mockup with urwid as cli and asyncio. The urwid part is already running fine, user input is possible. I know want to run a...

How to speed up flask-socketio Emit

I need to regularly send processed frames from opencv-python backed to a nodejs frontend. I am using flask-socketio for communication between nodejs and opencv-python. I am able to get the output...

Keypress not working for Edit widget in Urwid

I'm trying to make a terminal application in Python using Urwid. import urwid class Guess(): def __init__(self): self.guess = urwid.Edit(align='center') def keypress(self, size,...

Cupy error - disk quota exceeded [Minimal example included]

Executing the following minimal example in cupy. import cupy, cupyx x = cupy.array([1., 2., 3.]) y = cupy.arange(10) print(cupyx.get_runtime_info()) in the following manner (venv)...

Urwid: how does the button widget callback work?

Having a problem with the urwid library if anyone is familiar with it, I could use a hand. there are two code snippets below, the first one is a working example copied from the urwid...

urwid auto completion edit widget or pop_up without focus

I am writing an application in python with urwid. I need an Edit widget with autocompletion. Haven't seen one in the documentation so I have tried implementing it on my own based on the pop_up...

How to build and install yugabyte db version 2.0.6.0 from github source?

a) downloaded yugabyte-db.tar.gz from github b) created directory /opt/yugabyte/yugabyte-2.0.6.0 c) extracted to /opt/yugabyte d) made /opt/yugabyte/yugabyte-master as present working directory e)...

python regex: either or or both with separator

I need a regular expression to match a, b or a;b. I cannot write a|b|a;b because a and b contain named groups and if I try to do this I get an Exception: redefinition of group name 'a' as group 8;...

CEPH-ISCSI fails when restarting rbd-target-api and won't work anymore

I have an issue on ceph-iscsi ( ubuntu 20 LTS and Ceph 15.2.6) after I restart rbd-target-api, it fails and not starting again: I delete gateway.conf multiple times and put it again but it...

PackagesNotFoundError: The following packages are not available from current channels. How to solve?

Since I'm new to the field, I'm posing this question, although there are already some partial answers. I don't know the concrete solution to my problem. I'm trying to install dependencies for...

Im trying to build mediapipe on my jetson nano

So Im trying to build a mediapipe whl file for my jetson nano by following this guide https://github.com/jiuqiant/mediapipe_python_aarch64 I am successful on building it with my raspberry pi 4. By...