from prompt_toolkit.layout.containers import VSplit, Window
from prompt_toolkit.layout.controls import BufferControl

from ui.itemlist import itemlist # pylint: disable=import-error

class MainBody:
	'''Encapsulates the two main containers, the item list and the item display box'''

	def __init__(self):
		self.top = VSplit([
			Window(width=1, char='│', style='class:line'),
			itemlist.top,
			Window(width=1, char='│', style='class:line'),
			Window(content=BufferControl()),
			Window(width=1, char='│', style='class:line'),
		])


mainbody = MainBody()

from prompt_toolkit.layout.containers import VSplit, Window
from prompt_toolkit.layout.controls import BufferControl

from ui.itemlist import itemlist # pylint: disable=import-error

class MainBody:
	'''Encapsulates the two main containers, the item list and the item display box'''

	def __init__(self):
		self.top = VSplit([
			Window(width=1, char='│', style='class:line'),
			itemlist.top,
			Window(width=1, char='│', style='class:line'),
			Window(content=BufferControl()),
			Window(width=1, char='│', style='class:line'),
		])


mainbody = MainBody()

# pylint: disable=import-error Encapsulates the two main containers, the item list and the item display box