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()
感谢。