1
我試圖從2個不同的文件(使用拖放文件)獲取和存儲(以備後用)2個不同的文件路徑。Kivy從兩個不同的文件獲取文件路徑
我要讓2個labeles和一個按鈕:
"Drop Here Report(label)" "Drop Here Source(label)"
"Run(button)"
我需要定義,只有所述標籤是用戶可以刪除文件,我實在不明白它...
這是到目前爲止我的代碼:
class WindowFileDropExampleApp(App):
def build(self):
Window.bind(on_dropfile=self.DropFile)
return
def DropFile(self, window, file_path):
print(file_path)
return
if __name__ == '__main__':
WindowFileDropExampleApp().run()
感謝。