Skip to content

dorukwagle/tkinter-input-box

Repository files navigation

Installation

pip install tkinter-input-box

Import in code

from tkinter_input_box.input_box import InputBox

Refer to the example.py file for example

Options:

  • container : container e.g. root, to hold the InputBox
  • text : default text to display
  • input_type : password or text
  • take_focus : whether to take focus or not, by default it is 0, i.e. it does not take focus by default
  • font_color : color of the text
  • placeholder_color : color of the placeholder
  • show: display the given character in the input box while entering password ( check the example )
  • And all the other options that usual ttk.Entry supports


  • Methods

  • get_text(): returns the text in the InputBox
  • set_text(text): updates the InputBox text with given text
  • get_placeholder(): returns the current placeholder in the InputBox
  • set_placeholder(placeholder): updates the placeholder of the InputBox with given placeholder

  • More functionalities will be added soon...

    Releases

    No releases published

    Packages

    No packages published

    Languages