code: def resizeEvent(self, ev=None):
      if ev is not None:
          super().resizeEvent(ev)
      self.hideBtn.move(
          self.ui.view.size().width() - self.hideBtn.width(), 0
      )
  
      if not self.sizeApplied:
          self.sizeApplied = True
          s = int(
              min(self.width(), max(100, min(200, self.width() // 4)))
          )
          s2 = self.width() - s
          self.ui.splitter.setSizes([s2, s])
  
imports: import gc
  import importlib
  import weakref
  import warnings
  from ..graphicsItems.GridItem import GridItem
  from ..graphicsItems.ROI import ROI
  from ..graphicsItems.ViewBox import ViewBox
  from ..Qt import QT_LIB, QtCore, QtGui, QtWidgets
  from .None import CanvasTemplate_generic
  from .CanvasItem import CanvasItem, GroupCanvasItem
  from .CanvasManager import CanvasManager
label_desc: Use image node_id 5 for calling the Canvas obj's underlying member method code with example usage: obj.resizeEvent(ev) without return types