Python 3.5 :Simulate dropdown for combobox - python-3.x

I want the values of the combobox to get listed as soon as some text is typed in the combobox without clicking the arrow button.Is there any way i can simulate this arrow click ?

Related

bind dropdown values to button spotfire

I have a cascading dropdown and a load button. I want to bind the values selected from those dropdown to a button. And when a user clicks the load button line chart should be displayed. Any idea how to go about this?
TIA

Keyboard accessibility ( WCAG) in panels with list of elements that has assigned button role

Hi :) I would like to ask you about how to treat elements that compose a list, but whom have assiged a button role and are put in side panel ( so it is not a menu or dropdown). My main problem is how to decide is to where ARROWS should works and where TAB.
Moreover I have a differ types of list items that consist of:
checkbox/ radiobutton only
checkbox/ radiobutton with a link to another panel
two icons/ buttons that has defined an activities etc.
Please look at pictures and help me please :)
PINK - "arrows"
BLUE - "TAB"key
You should hardly decide which component will use TAB key or Arrow Keys. Keyboard accessibility for a large number of components is already defined in WAI-ARIA Authoring Practices.
Adding a different behavior could create issues to both sighted, and non-sighted users because they'll already be knowing which key to use based on the component or they'll know intuitively because of standard roles or they'll know as they use keyboard more to browse.
Offer List
Listbox will work. Arrow Keys to navigate and Enter key to perform the action.
List of Checkboxes and Radio Buttons
I would recommend to keep Checkboxes and Radio Buttons to their default keyboard behavior. Since your cases are more of a list, you can convert the list of checkboxes and radio buttons to Single Select and Multi Select Listboxes and use Checkbox and Radio Button as a font icon or graphic to show the selection, similar to how tick is shown in this Listbox example. When you convert to a Listbox, you'll meet the Arrow Keys requirement.
Selected Fruits List
There are some issues in the required keyboard behavior: How will user know if Arrow-Left or Arrow-Right need to be presed, think about non-sighted users.
Fruit Name and i icon button
In your need, you want both Fruit Name and i icon button to open a panel, suggest to NOT use Arrow-Right to i icon button and only use the Enter key to open the panel. May be you don't need i icon button at all.
Delete icon button
Suggest to use DEL key to delete the item
Conclusion
Remove i icon button. If you can't just keep it as graphic element without any events
Use Enter key to open the panel
Use DEL key to delete the item
I think the whole list will then become a listbox, navigable using Arrow Keys and Enter to invoke an operation
Vegetables List
Neither Accordion nor Nested List works here because you have two actions to do: Make a selection, and Expand and Collapse. I haven't tried TreeView but you can check.

Toggle a custom icon on an Action Button on Lotus Notes form

When editing the action button properties, it allows an #if statement to flip/flop two choices (lock/unlock). i.e. #If(enlock=1;"Unlock";"Lock") for the "Label" of the action button.
At the bottom of the Action properties, icons can be None, Notes, or Custom. When I select Custom, I want the #if to use either the Locked/Unlocked Notes icons. (actn084.gif and actn085.gif, respectively) Or numbers #62 (locked) and #(I don't know/can't find, the # for the unlock icon).
I've tried formula with the icon number, like in a view, "display as icons" for view column. Using an #if, I've tried the gif on local and server replica's and it didn't give any results.
Please see the example image below.
Image example: http://i.stack.imgur.com/UBac3.png
You have to add actn084.gif and actn085.gif to Resources/Images.
Then, you can use a formula
#If(enlock=1;"actn085.gif";"actn084.gif")
for calculating icon.
As an alternative, you could create two buttons and hide-when them depending on field enlock. You could assign label and icon direct to buttons without formula then.
The hide formula would be enlock=1 for first button and enlock!=1 for the second. In both buttons you would have to add #Command([RefreshHideFormulas]); at the end of your action formula to refresh the action buttons (or Call uiDoc.RefreshHideFormulas for LotusScript action code).

Trick ComboBox into thinking its' dropdown is open when it's not

I found a control that displays a CheckedListBox for the dropdown of a combobox. I like this but I want to improve upon it. I want to perfectly replicate the behavior of the standard combobox like so:
When the user clicks the combobox the dropdown (CheckedListBox) opens.
When the user clicks inside the dropdown they have no problem checking multiple options.
When the user clicks the ComboBox again the DropDown hides.
When the user clicks off the combobox (ANYWHERE, be it on a control or just the form), the DropDown gets hidden.
I found on P/Invoke.net the PostMessage function in the User32.DLL library that allows you to send a message to the ComboBox using the CB_SHOWDROPDOWN (0x014F) message to force it to immediately close the native DropDown.
The problem in doing so is that it will automatically force call the OnDropDownClosed function of the base ComboBox control. This I would not care about but it stops the natural feeling of the control (for me at least) in that if you do some trickery with it to keep your custom dropdown open, it still stays open when you click off the control (because the ComboBox thinks it's dropdown is closed already).
That is the behavior I want to avoid. I want the ComboBox to think that it's DropDown is still open when it's not (until the user either clicks the combobox to close it or clicks off the control).
Also, the problem I was experiencing before just letting it open the native combobox dropdown was that when I went to click on the custom dropdown, the ComboBox fires the OnDropDownClosed function and (seeing as how I override that method to hide the custom dropdown), my dropdown is hidden.
So...
How do I override the OnDropDown method to open up a custom custom dropdown that, when clicked, will not fire the OnDropDownClosed method, I guess, is the short way of asking the question.

In wpf what is difference between Text and SelectedValue properties of a combobox

I am new to WPF. I have a problem with ComboBox that is placed within a cell of a grid. I am using xceed grid control. Within the xcd:CellEditor tag, I have this ComboBox control. The combobox is populated with values properly with required value in it selected but when I click on the combobox, the selected value is cleared (showing empty selection) and I had to click on the dropdown arrow to display the list and select that value again.
This problem is occuring to me when I am using the Text property of the ComboBox but when I replace the Text to SelectedValue then I don't see this problem. Can anyone throw some light on this.
Following is what I have changed.
From Text="{xcdg:CellEditorBinding}" to SelectedValue="{xcdg:CellEditorBinding}"

Resources