Python Forum
Option dropdown with Pyinquerer
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Option dropdown with Pyinquerer
#1
[Image: 54984836-f9c7c200-4faf-11e9-9d0e-d2512fc73e7f.png]

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)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Dropdown box showing weird entry cybertooth 4 2,179 Aug-16-2021, 03:45 PM
Last Post: deanhystad
  [Tkinter] populating dropdown from Method mikisDW 2 3,818 Apr-06-2020, 08:06 PM
Last Post: mikisDW
  [Tkinter] Choose from dropdown list and then do something? Selfiatus1 2 5,406 Jun-07-2019, 08:43 PM
Last Post: Selfiatus1
  Dropdown menu- Store variable aking76 1 3,371 Sep-11-2018, 01:30 PM
Last Post: aking76

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020