Skip to main content

A Tkinter GUI Console For Executing Commands.

Project description

DevConsole

DevConsole Is A Developer Console That Lets Your User Or The Developers To Have A Console Interface For Testing. This becomes extreamly handy when you want to execute functions at certain times and don't want to setup a super complex system for testing.

There Will Be A "Command" Class Which Is A Class That Stores A Function/Method That Gets Called When The Command Is Executed And A Name Which Is The Name Thats Used To Call The Command In The Console (Note: The Commands Will Be Lowered So Even A Command Like "eXiT" will be recognised as "exit").

The Console Will Be A Tkinter Window And It Supports Custom GUI Made In Tkinter But the feature is not tested and polished so there may be bugs. There must be these components on the tkinter window if you decide to use the custom GUI feature:

"CommandEntry" - tkinter.Entry Used For Entering Commands

"CommandList" - tkinter.Listbox Used For Displaying Commands

"SubmitButton" - tkinter.Button Used For Submitting Commands

Note: The Return/Enter button will automatically be binded to execute commands.

Usage Examples (Python Code):

from DevConsole.Console import Console, Command

console = Console("Console title", "icon path", "background color code") # Create a new console.   all these parameters are optional

def function(): # The Function That Will Get Activated When A Command Is Executed
	print("A Command Has Been Executed Through DevConsole")
	console.Log("You Just Executed A Command") # Writing A Line To The Console

cmd = Command("name", function) # Created a Command Object Called cmd and giving it a name and a function/method to call

# The Name Of The Command Will Be the text used to call the command

console.RegisterCommand(cmd) # Register The Command That We Just Created, You Could Register As Many As You Want

console.mainloop() # Calls the tkinter.mainloop() function

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

DevConsole-0.2.3.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

DevConsole-0.2.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file DevConsole-0.2.3.tar.gz.

File metadata

  • Download URL: DevConsole-0.2.3.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for DevConsole-0.2.3.tar.gz
Algorithm Hash digest
SHA256 26b45ab514bf90e7766c689000880fe4b7206c46c4ba3b940bd0f50e1bf00cd5
MD5 945518f146983549c2ba8041195d20e2
BLAKE2b-256 2bfb6bdc1b60b698f6c2888f10c97e8f49b4f2e3a28e4a3b77c70ddce2809814

See more details on using hashes here.

File details

Details for the file DevConsole-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: DevConsole-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for DevConsole-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb27c2d396262861ff50ddedbfa59537d9fec77fee7029168ca20882364286b5
MD5 1c081dfb032d0da96dd936127bca77e6
BLAKE2b-256 a7290b62c6997272b41a8c6933287c2107dc4615822043b69a6619b4b59c34e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page