Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Option dropdown with Pyinquerer
#1
İmage


I want to create something like this. A option dropdown with those white lines inbetween options, to make it more clear.
This is my code untill now. I'd like to have that white line between 'Quick task' and 'Manage profiles'. I've currently done it like this. But atm, you can also select the option of those white lines, wich i don't want to be possible. So how do i add those white lines inbetween options, without those lines being a option to choose?
style = style_from_dict({
    Token.QuestionMark: '#0533ff bold',
    #Token.Selected: '#05fbff bold',
    Token.Answer: '#05fbff bold',
    Token.Question: '#05fbff bold',
})

questions = [{'type': 'list', 'name': 'Available', 'message': 'Available options: ', 'choices': ['Launch tasks', 'Quick task', '---------------', 'Manage profiles', 'Manage settings', 'Supported sites', 'Submit a suggestion', 'Close the bot']} ,]
answers = prompt(questions, style=style)
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Tkinter] Choose from dropdown list and then do something? Selfiatus1 2 1,061 Jun-07-2019, 08:43 PM
Last Post: Selfiatus1
  Dropdown menu- Store variable aking76 1 831 Sep-11-2018, 01:30 PM
Last Post: aking76

Forum Jump:


Users browsing this thread: 1 Guest(s)