Module ida_kernwin :: Class Form :: Class DropdownListControl
[frames] | no frames]

Class DropdownListControl

                          object --+        
                                   |        
                        Form.Control --+    
                                       |    
                       Form.InputControl --+
                                           |
                      object --+           |
                               |           |
ida_idaapi.pyidc_opaque_object_t --+       |
                                   |       |
      ida_idaapi.py_clinked_object_t --+   |
                                       |   |
                      ida_pro._qstrvec_t --+
                                           |
                                          Form.DropdownListControl

Dropdown control This control allows manipulating a dropdown control

Instance Methods
 
__init__(self, items=[], readonly=True, selval=0, width=50, swidth=50, hlp=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
free(self)
Free the control
 
set_items(self, items)
Sets the dropdown list items

Inherited from InputControl: get_tag, is_input_field

Inherited from Control: get_arg

Inherited from ida_pro._qstrvec_t: __getitem__, __setitem__, add, addressof, assign, clear, from_list, insert, remove

Inherited from ida_idaapi.py_clinked_object_t: __del__, copy

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables

Inherited from ida_idaapi.pyidc_opaque_object_t: __idc_cvt_id__

Instance Variables

Inherited from Control: arg, form, id, input_field_index

Properties
  value
  selval
Read/write the selection value.

Inherited from ida_pro._qstrvec_t: size

Inherited from ida_idaapi.py_clinked_object_t: clink, clink_ptr

Inherited from object: __class__

Method Details

__init__(self, items=[], readonly=True, selval=0, width=50, swidth=50, hlp=None)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • items - A string list of items used to prepopulate the control
  • readonly - Specifies whether the dropdown list is editable or not
  • selval - The preselected item index (when readonly) or text value (when editable)
  • width - the control width (n/a if the dropdown list is readonly)
  • swidth - string width
Overrides: object.__init__

free(self)

 

Free the control

Overrides: Control.free
(inherited documentation)

Property Details

value

Get Method:
__get_selval(self)
Set Method:
__set_selval(self, val)

selval

Read/write the selection value. The value is used as an item index in readonly mode or text value in editable mode This value can be used only after the form has been closed.

Get Method:
__get_selval(self)
Set Method:
__set_selval(self, val)