
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
1 - install: pip install console-gui
2 - use from gui import *
# when we change the text
# component = what is the component calling the func
def on_text_change(component):
reader.components['readonly'].config(text=component.text)
componets=[
Field('readonly', None, readonly=True, text='hello readonly'), # readonly lets the user not click on it
Field('this is a input filid', on_text_change),
Button('this is a disable button', None, enable=False), # gray out the button not letting the user click it
Button('this is a exit button', lambda _: exit(0)) # exit the prorgam when click
]
reader = Reader(componets)
reader.read()
3 - add more from gui import Component
class MyComponent(Component):
def __init__(self, name, click, **kwargs):
super().__init__(name, click, **kwargs)
self.text = name
# calls when we click
def on_click(self):
self.text = 'pizza'
self.click(self)
# what will is show
def __str__(self):
return self.text
4 - help
class Component:
def __init__(name, click, kwargs)
name is not the thing that will display unless text is none
name is the str use to get Comp ex: reader.components.get('button')
for Button name use conent
Reader.__init__(the list of componets,
stop if press type x = None by defalt,
the button color when selected=WHITE by defalt,
the button fore color when selected=BLACK bu defalt)
FAQs
gui for conosle buttons and fields
We found that console-gui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.