title: generate multiple menu items with lists in rumps
body: <p>I've built a <a href="https://github.com/jaredks/rumps" rel="nofollow noreferrer">python rumps</a> application with a few menu options. But I'm trying to figure out how to create either a menu or submenu from a list. I need to pull up a list of users and when it's clicked, it executes a command unique to that user.</p>
  
  <p>So it should connect to an external source to grab a list of users, then list those users as menu items.  Clicking each will execute a different unique command or option.  </p>
  
  <p>This was what I was trying to do, but clearly its a no-go. </p>
  
  <pre><code>import rumps
  
  # returns a list of users
  listofusers = get_list_of_user_folders()
  
  class OfficeToolApp(rumps.App):
      def __init__(self):
          super(OfficeToolApp, self).__init__("Tools", icon="officeimage.png")
          self.menu = listofusers
  
      for user in listofusers:
          @rumps.clicked(user)
          def userclick(self, _):
              change_wacom_driver.RunSync("push", user)
  
      @rumps.clicked("Push Settings to Jay")
      def pushjaysettings(self, _):
          change_wacom_driver.RunSync("push", "jay")
  
      @rumps.clicked("Push Settings to Steve")
      def pushstevesettings(self, _):
          change_wacom_driver.RunSync("push", "steve")
  
  if __name__ == "__main__":
      OfficeToolApp().run()
  </code></pre>
  
  <p>I was actually surprised that this generated the list correctly in the menu. The buttons just don't seem to do anything.  </p>