# -*- coding: UTF-8 -*-
#
# generated by wxGlade
#

import wx

# begin wxGlade: dependencies
import gettext
# end wxGlade

# begin wxGlade: extracode
# end wxGlade


class wxgIncomingPluginPnl(wx.Panel):
	def __init__(self, *args, **kwds):
		# begin wxGlade: wxgIncomingPluginPnl.__init__
		kwds["style"] = kwds.get("style", 0) | wx.BORDER_NONE | wx.TAB_TRAVERSAL
		wx.Panel.__init__(self, *args, **kwds)
		self._BTN_load_file = wx.Button(self, wx.ID_ANY, _("Load from &file"))
		self._BTN_load_from_clipboard = wx.Button(self, wx.ID_ANY, _("Load from &clipboard"))
		self._LBL_drop_target = wx.StaticText(self, wx.ID_ANY, _("Drag anything into this field."))

		self.__set_properties()
		self.__do_layout()

		self.Bind(wx.EVT_BUTTON, self._on_load_file, self._BTN_load_file)
		self.Bind(wx.EVT_BUTTON, self._on_load_from_clipboard, self._BTN_load_from_clipboard)
		# end wxGlade

	def __set_properties(self):
		# begin wxGlade: wxgIncomingPluginPnl.__set_properties
		self._BTN_load_file.SetToolTip(_("Load a &file"))
		self._BTN_load_from_clipboard.SetToolTip(_("Load from clipboard"))
		self._LBL_drop_target.SetFont(wx.Font(10, wx.FONTFAMILY_DEFAULT, wx.FONTSTYLE_ITALIC, wx.FONTWEIGHT_NORMAL, 0, ""))
		# end wxGlade

	def __do_layout(self):
		# begin wxGlade: wxgIncomingPluginPnl.__do_layout
		__szr_main = wx.BoxSizer(wx.VERTICAL)
		__szr_main.Add(self._BTN_load_file, 0, wx.ALIGN_CENTER_HORIZONTAL, 0)
		__szr_main.Add(self._BTN_load_from_clipboard, 0, wx.ALIGN_CENTER_HORIZONTAL | wx.TOP, 3)
		__szr_main.Add(self._LBL_drop_target, 1, wx.BOTTOM | wx.EXPAND | wx.TOP, 3)
		__szr_main.Add((0, 0), 0, 0, 0)
		self.SetSizer(__szr_main)
		__szr_main.Fit(self)
		self.Layout()
		# end wxGlade

	def _on_load_file(self, event):  # wxGlade: wxgIncomingPluginPnl.<event_handler>
		print("Event handler '_on_load_file' not implemented!")
		event.Skip()

	def _on_load_from_clipboard(self, event):  # wxGlade: wxgIncomingPluginPnl.<event_handler>
		print("Event handler '_on_load_from_clipboard' not implemented!")
		event.Skip()

# end of class wxgIncomingPluginPnl
