# Path: multi_input_box.py
# class MultiInputBox(Popup):
#     ok_text = StringProperty('OK')
#     cancel_text = StringProperty('Cancel')
# 
#     def __init__(self, **kwargs):
#         self.window = Window
#         super(MultiInputBox, self).__init__(**kwargs)
#         self.content = self.ids["content"]
#         self.contentButtons = self.ids["contentButtons"]
#         self.wl = []
# 
#     def _dismiss(self):
#         self.dismiss()
# 
#     def open(self):
#         super(MultiInputBox, self).open()
# 
#     def _ok(self):
#         if self.optionCallBack is not None:
#             opts = {}
#             for x in self.wl:
#                 opts[x[0]] = x[1].text
#             self.optionCallBack(opts)
#         self.dismiss()
# 
#     def on_open(self):
#         if self.wl:
#             self.wl[0][1].focus = True
# 
#     def setOptions(self, options, callBack):
#         self.optionCallBack = callBack
#         self.contentButtons.clear_widgets()
#         self.wl = []
#         for name in options:
#             self.contentButtons.add_widget(Label(text=name, size_hint_y=None, height='30dp', halign='right'))
#             tw = TextInput(multiline=False, write_tab=False, use_bubble=False, use_handles=False)
#             self.contentButtons.add_widget(tw)
#             self.wl.append((name, tw))


from kivy.app import App
from kivy.lang import Builder
from kivy.clock import Clock, mainthread
from kivy.config import ConfigParser
from kivy.uix.settings import SettingsWithNoMenu
from kivy.uix.label import Label
from kivy.logger import Logger
from kivy.uix.screenmanager import ScreenManager, Screen
from multi_input_box import MultiInputBox
import json
import configparser
import threading



Builder.load_string('''
<ConfigV2Editor>:
    placeholder: placeholder
    BoxLayout:
        canvas:
            Color:
                rgba: 0.3, 0.3, 0.3, 1
            Rectangle:
                size: self.size
                pos: self.pos
        orientation: 'vertical'
        BoxLayout:
            size_hint_y: None
            height: dp(60)
            padding: dp(8)
            spacing: dp(16)
            Button:
                size: 100, 40

# Path: multi_input_box.py
# class MultiInputBox(Popup):
#     ok_text = StringProperty('OK')
#     cancel_text = StringProperty('Cancel')
# 
#     def __init__(self, **kwargs):
#         self.window = Window
#         super(MultiInputBox, self).__init__(**kwargs)
#         self.content = self.ids["content"]
#         self.contentButtons = self.ids["contentButtons"]
#         self.wl = []
# 
#     def _dismiss(self):
#         self.dismiss()
# 
#     def open(self):
#         super(MultiInputBox, self).open()
# 
#     def _ok(self):
#         if self.optionCallBack is not None:
#             opts = {}
#             for x in self.wl:
#                 opts[x[0]] = x[1].text
#             self.optionCallBack(opts)
#         self.dismiss()
# 
#     def on_open(self):
#         if self.wl:
#             self.wl[0][1].focus = True
# 
#     def setOptions(self, options, callBack):
#         self.optionCallBack = callBack
#         self.contentButtons.clear_widgets()
#         self.wl = []
#         for name in options:
#             self.contentButtons.add_widget(Label(text=name, size_hint_y=None, height='30dp', halign='right'))
#             tw = TextInput(multiline=False, write_tab=False, use_bubble=False, use_handles=False)
#             self.contentButtons.add_widget(tw)
#             self.wl.append((name, tw))


# Path: configv2_editor.py
from kivy.app import App
from kivy.lang import Builder
from kivy.clock import Clock, mainthread
from kivy.config import ConfigParser
from kivy.uix.settings import SettingsWithNoMenu
from kivy.uix.label import Label
from kivy.logger import Logger
from kivy.uix.screenmanager import ScreenManager, Screen
from multi_input_box import MultiInputBox
import json
import configparser
import threading




Builder.load_string('''
<ConfigV2Editor>:
    placeholder: placeholder
    BoxLayout:
        canvas:
            Color:
                rgba: 0.3, 0.3, 0.3, 1
            Rectangle:
                size: self.size
                pos: self.pos
        orientation: 'vertical'
        BoxLayout:
            size_hint_y: None
            height: dp(60)
            padding: dp(8)
            spacing: dp(16)
            Button:
                size: 100, 40

                size_hint: None, None