3

I'm using filedialog with tkinter to browse a file in my Python application. When I click on 'browse' I have this message :

objc[84539]: Class FIFinderSyncExtensionHost is implemented in both /System/Library/PrivateFrameworks/FinderKit.framework/Versions/A/FinderKit (0x7fff99d17cd0) and /System/Library/PrivateFrameworks/FileProvider.framework/OverrideBundles/FinderSyncCollaborationFileProviderOverride.bundle/Contents/MacOS/FinderSyncCollaborationFileProviderOverride (0x1103dfcd8). One of the two will be used. Which one is undefined.

Here is my "browse" function

def select_input_file(self):
        global inputFileName
        self.inputFileName =  fd.askopenfilename(initialdir = "./",title = "Select file",filetypes = (("all files","."),("txt files","*.txt")))
        if(lb.size() == 0):
            lb.insert(END,self.inputFileName.split("/")[-1])  #Inserts txt filename in listbox.
        else:
            lb.delete(0)
            lb.insert(END,self.inputFileName.split("/")[-1])

How can I fix this ?

userHG
  • 567
  • 4
  • 29
  • [Edit] your Question and show the function invoked on *"click on 'browse'"*? – stovfl Feb 22 '19 at 18:47
  • I don't have an answer to this, but a number of Tcl/Tk users encounter this warning (i.e. this isn't Tkinter-specific). I'm not sure anyone knows what to do about this warning other than [ignore it](https://stackoverflow.com/a/47013488/4896937). – chrstphrchvz Jun 18 '19 at 17:53

0 Answers0