parameters: ()
return_statement: return app
docstring: Create and setup the tkinter app.
docstring_summary: Create and setup the tkinter app.
docstring_tokens: Create and setup the tkinter app .
function: def setup_tk():
      """Create and setup the tkinter app."""
      root = Tk()
      app = Application(root)
      app.master.title(WINDOW_TITLE)
  
      # now get a list of all the fonts Scribus knows about...
      fontList = scribus.getFontNames()
      fontList.sort()
      # and load the list into the GUI listbox...
      for i in fontList:
          app.listbox1.insert(END, i)
      app.sampleBlocksPerPage = draw_selection(scribus.getFontNames(), 1)
      # now set the status bar message...
      app.statusbarUpdate()
      # set up widgets using data from userPrefs...
      app.initialiseWidgets()
      return app
function_tokens: def setup_tk ( ) : root = Tk ( ) app = Application ( root ) app . master . title ( WINDOW_TITLE ) # now get a list of all the fonts Scribus knows about... fontList = scribus . getFontNames ( ) fontList . sort ( ) # and load the list into the GUI listbox... for i in fontList : app . listbox1 . insert ( END , i ) app . sampleBlocksPerPage = draw_selection ( scribus . getFontNames ( ) , 1 ) # now set the status bar message... app . statusbarUpdate ( ) # set up widgets using data from userPrefs... app . initialiseWidgets ( ) return app