title: How to set default value in the combobox in tkinter?
body: <p>I am creating an application where I need a tkinter combox. There I want the combo box to have a default value from the starting of the application. I have tried <code>current()</code> method but it is not working.</p>
  <p>Here is my code snipped</p>
  <pre><code>n= tk.StringVar()
  youtubechoicesLabel = ttk.Combobox(root, font=font, justify='center', textvariable=n)
  youtubechoicesLabel['values'] = (&quot;----Download Type----&quot;,
                                      &quot;Mp4  720p&quot;,
                                      &quot;Mp4  144p&quot;,
                                      &quot;Video  3gp&quot;,
                                      &quot;Audio  Mp3&quot;)
  
  youtubechoicesLabel.current(0)
  youtubechoicesLabel[&quot;background&quot;] = '#ff0000'
  youtubechoicesLabel[&quot;foreground&quot;] = '#ffffff'
  youtubechoicesLabel.pack(side=TOP, pady=20)
  </code></pre>