Package dtk :: Package ui :: Module entry :: Class InputEntry

Class InputEntry

source code


Text entry.

Generically speaking, InputEntry is similar TextEntry,

only difference between two class is ui style, internal logic is same.

Instance Methods
 
__init__(self, content="", action_button=None, background_color=ui_theme.get_alpha_color("text_entry_background"), acme_color=ui_theme.get_alpha_color("text_entry_acme"), point_color=ui_theme.get_alpha_color("text_entry_point"), frame_point_color=ui_theme.get_alpha_color("text_entry_frame_point"), frame_color=ui_theme.get_alpha_color("text_entry_frame"))
Initialize InputEntry class.
source code
 
set_size(self, width, height)
Set input entry size with given value.
source code
 
set_editable(self, editable)
Set editable status of input entry.
source code
 
set_text(self, text)
Set text of input entry.
source code
 
get_text(self)
Get text of input entry.
source code
 
focus_input(self)
Focus input cursor.
source code
Class Variables
  __gsignals__ = {"action-active":(gobject.SIGNAL_RUN_LAST, gobj...
Method Details

__init__(self, content="", action_button=None, background_color=ui_theme.get_alpha_color("text_entry_background"), acme_color=ui_theme.get_alpha_color("text_entry_acme"), point_color=ui_theme.get_alpha_color("text_entry_point"), frame_point_color=ui_theme.get_alpha_color("text_entry_frame_point"), frame_color=ui_theme.get_alpha_color("text_entry_frame"))
(Constructor)

source code 

Initialize InputEntry class.

Parameters:
  • content - Initialize entry text, default is "".
  • action_button - Extra button add at right side of input entry, default is None.
  • background_color - Color of input entry background.
  • acme_color - Acme point color of input entry.
  • point_color - Pointer color of input entry.
  • frame_point_color - Frame pointer color of input entry.
  • frame_color - Frame color of input entry.

set_size(self, width, height)

source code 

Set input entry size with given value.

Parameters:
  • width - New width of input entry.
  • height - New height of input entry.

set_editable(self, editable)

source code 

Set editable status of input entry.

Parameters:
  • editable - input entry can editable if option is True, else can't edit.

set_text(self, text)

source code 

Set text of input entry.

Parameters:
  • text - input entry string.

get_text(self)

source code 

Get text of input entry.

Returns:
Return text of input entry.

Class Variable Details

__gsignals__

Value:
{"action-active":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, (str,)),\
}