【发布时间】:2018-08-02 10:25:30
【问题描述】:
我想将 kivy 文件选择器添加到 gridlayout https://kivy.org/docs/api-kivy.uix.filechooser.html
我有我的主要课程:
class MainApp(GridLayout):
def __init__(self, **kwargs):
mylayout = BoxLayout(orientation='vertical')
我想将文件选择器中的编辑器类添加到 mylayout BoxLayout 如果我添加
mylayout.add_widget(Editor.run())
我的窗口全屏显示文件选择器,而不是 boxlayout
我希望用户可以选择文件夹(不是文件)。
【问题讨论】:
-
您要添加 FileChooser 还是 Editor?
-
我想添加“FileChooser”我希望用户可以选择文件夹(不是文件)
-
如果你勾选Editor is not a widget but the application of the example,那就不正确了。
标签: python kivy filechooser