What is the proper way to access a Listbox that's in another moduleWhat is the quickest way to HTTP GET in Python?What is a clean, pythonic way to have multiple constructors in Python?What are the differences between json and simplejson Python modules?Proper way to use **kwargs in PythonProper way to declare custom exceptions in modern Python?What are the differences between the urllib, urllib2, and requests module?What is the proper way to comment functions in python?ttk tkinter multiple frames/windowsWhat is the easiest way to remove all packages installed by pip?wxpython - Erase background erases non-background components

Is Diceware more secure than a long passphrase?

"The cow" OR "a cow" OR "cows" in this context

Suing a Police Officer Instead of the Police Department

How exactly does Hawking radiation decrease the mass of black holes?

Negative Resistance

Difficulty accessing OpenType ligatures with LuaLaTex and fontspec

Island of Knights, Knaves and Spies

A faster way to compute the largest prime factor

How do I produce this symbol: Ϟ in pdfLaTeX?

Nails holding drywall

What to do with someone that cheated their way through university and a PhD program?

Will I lose my paid in full property

Why must Chinese maps be obfuscated?

Drawing a german abacus as in the books of Adam Ries

Older movie/show about humans on derelict alien warship which refuels by passing through a star

Retract an already submitted recommendation letter (written for an undergrad student)

Magical attacks and overcoming damage resistance

Why did Rep. Omar conclude her criticism of US troops with the phrase "NotTodaySatan"?

How to keep bees out of canned beverages?

std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?

Check if a string is entirely made of the same substring

Prove that the countable union of countable sets is also countable

Complex numbers z=-3-4i polar form

Is there metaphorical meaning of "aus der Haft entlassen"?



What is the proper way to access a Listbox that's in another module


What is the quickest way to HTTP GET in Python?What is a clean, pythonic way to have multiple constructors in Python?What are the differences between json and simplejson Python modules?Proper way to use **kwargs in PythonProper way to declare custom exceptions in modern Python?What are the differences between the urllib, urllib2, and requests module?What is the proper way to comment functions in python?ttk tkinter multiple frames/windowsWhat is the easiest way to remove all packages installed by pip?wxpython - Erase background erases non-background components






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















For short, lets say I have a Listbox that's within a GUI A



self.Listbox1 = tk.Listbox(self.TNotebook2_t0)
self.Listbox1.place(relx=0.0, rely=0.0, relheight=1.008, relwidth=1.012)
self.Listbox1.configure(background="white")
self.Listbox1.configure(disabledforeground="#a3a3a3")
self.Listbox1.configure(font="TkFixedFont")
self.Listbox1.configure(foreground="#000000")
self.Listbox1.configure(width=334)


On the GUI A side, I have the button working. However, when I click on the button, I want to access a function from another class B. That function should insert a string to the Listbox within this GUI A



class navigate:
def __init__(self):
self.listings = Listings.Lists()

def set_training_data_directory(self):
TRAINING_DIR = filedialog.askdirectory()
p = self.listings.get_list_of_training_data
#At this point I dont know how to call the GUI becauce to insert to the TextBox becuase I've gotten too many error
#Toplevel1.Textbox1.insert(p[0])
#Toplevel1.Textbox1.pack()


I can post the whole code if it makes it easier, but its mostly GUI elements










share|improve this question




























    0















    For short, lets say I have a Listbox that's within a GUI A



    self.Listbox1 = tk.Listbox(self.TNotebook2_t0)
    self.Listbox1.place(relx=0.0, rely=0.0, relheight=1.008, relwidth=1.012)
    self.Listbox1.configure(background="white")
    self.Listbox1.configure(disabledforeground="#a3a3a3")
    self.Listbox1.configure(font="TkFixedFont")
    self.Listbox1.configure(foreground="#000000")
    self.Listbox1.configure(width=334)


    On the GUI A side, I have the button working. However, when I click on the button, I want to access a function from another class B. That function should insert a string to the Listbox within this GUI A



    class navigate:
    def __init__(self):
    self.listings = Listings.Lists()

    def set_training_data_directory(self):
    TRAINING_DIR = filedialog.askdirectory()
    p = self.listings.get_list_of_training_data
    #At this point I dont know how to call the GUI becauce to insert to the TextBox becuase I've gotten too many error
    #Toplevel1.Textbox1.insert(p[0])
    #Toplevel1.Textbox1.pack()


    I can post the whole code if it makes it easier, but its mostly GUI elements










    share|improve this question
























      0












      0








      0








      For short, lets say I have a Listbox that's within a GUI A



      self.Listbox1 = tk.Listbox(self.TNotebook2_t0)
      self.Listbox1.place(relx=0.0, rely=0.0, relheight=1.008, relwidth=1.012)
      self.Listbox1.configure(background="white")
      self.Listbox1.configure(disabledforeground="#a3a3a3")
      self.Listbox1.configure(font="TkFixedFont")
      self.Listbox1.configure(foreground="#000000")
      self.Listbox1.configure(width=334)


      On the GUI A side, I have the button working. However, when I click on the button, I want to access a function from another class B. That function should insert a string to the Listbox within this GUI A



      class navigate:
      def __init__(self):
      self.listings = Listings.Lists()

      def set_training_data_directory(self):
      TRAINING_DIR = filedialog.askdirectory()
      p = self.listings.get_list_of_training_data
      #At this point I dont know how to call the GUI becauce to insert to the TextBox becuase I've gotten too many error
      #Toplevel1.Textbox1.insert(p[0])
      #Toplevel1.Textbox1.pack()


      I can post the whole code if it makes it easier, but its mostly GUI elements










      share|improve this question














      For short, lets say I have a Listbox that's within a GUI A



      self.Listbox1 = tk.Listbox(self.TNotebook2_t0)
      self.Listbox1.place(relx=0.0, rely=0.0, relheight=1.008, relwidth=1.012)
      self.Listbox1.configure(background="white")
      self.Listbox1.configure(disabledforeground="#a3a3a3")
      self.Listbox1.configure(font="TkFixedFont")
      self.Listbox1.configure(foreground="#000000")
      self.Listbox1.configure(width=334)


      On the GUI A side, I have the button working. However, when I click on the button, I want to access a function from another class B. That function should insert a string to the Listbox within this GUI A



      class navigate:
      def __init__(self):
      self.listings = Listings.Lists()

      def set_training_data_directory(self):
      TRAINING_DIR = filedialog.askdirectory()
      p = self.listings.get_list_of_training_data
      #At this point I dont know how to call the GUI becauce to insert to the TextBox becuase I've gotten too many error
      #Toplevel1.Textbox1.insert(p[0])
      #Toplevel1.Textbox1.pack()


      I can post the whole code if it makes it easier, but its mostly GUI elements







      python user-interface tkinter






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 9 at 7:37









      Patrick AdjeiPatrick Adjei

      64




      64






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075109%2fwhat-is-the-proper-way-to-access-a-listbox-thats-in-another-module%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55075109%2fwhat-is-the-proper-way-to-access-a-listbox-thats-in-another-module%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко