docstr: Sets the orientation of the title bar for this Dock.
  Must be one of 'auto', 'horizontal', or 'vertical'.
  By default ('auto'), the orientation is determined
  based on the aspect ratio of the Dock.
docstr_tok: ["Sets","the","orientation","of","the","title","bar","for","this","Dock",".","Must","be","one","of","'auto","'",",","'horizontal","'",",","or","'vertical","'",".","By","default","(","'auto","'",")",",","the","orientation","is","determined","based","on","the","aspect","ratio","of","the","Dock","."]
code: def setOrientation(self, o="auto", force=False):
      """
      Sets the orientation of the title bar for this Dock.
      Must be one of 'auto', 'horizontal', or 'vertical'.
      By default ('auto'), the orientation is determined
      based on the aspect ratio of the Dock.
      """
      # setOrientation may be called before the container is set in some cases
      # (via resizeEvent), so there's no need to do anything here until called
      # again by containerChanged
      if self.container() is None:
          return
  
      if o == "auto" and self.autoOrient:
          if self.container().type() == "tab":
              o = "horizontal"
          elif self.width() > self.height() * 1.5:
              o = "vertical"
          else:
              o = "horizontal"
      if force or self.orientation != o:
          self.orientation = o
          self.label.setOrientation(o)
          self.updateStyle()
  
imports: import warnings
  from ..Qt import QtCore, QtGui, QtWidgets
  from ..widgets.VerticalLabel import VerticalLabel
  from .DockDrop import DockDrop
label_desc: Use image node_id 9 for calling the Dock obj's underlying member method code with example usage: obj.setOrientation(o, force) without return types