KDE 5.0 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KPopupFrame Class Reference

from PyKDE5.kwidgetsaddons import *

Inherits: QFrame → QWidget → QObject

Detailed Description

Frame with popup menu behavior.

Author:
Tim Gilman, Mirko Boehm


Signals

 leaveModality ()

Methods

 __init__ (self, QWidget parent=0)
 close (self, int r)
int exec (self, QPoint p)
int exec (self, int x, int y)
 hideEvent (self, QHideEvent e)
 keyPressEvent (self, QKeyEvent e)
 popup (self, QPoint pos)
 resizeEvent (self, QResizeEvent resize)
 setMainWidget (self, QWidget m)

Signal Documentation

leaveModality (   )
Signal syntax:
QObject.connect(source, SIGNAL("leaveModality()"), target_slot)

Method Documentation

__init__ (  self,
QWidget  parent=0
)

The contructor. Creates a dialog without buttons.

close (  self,
int  r
)

Close the popup window. This is called from the main widget, usually. r is the result returned from exec().

int exec (  self,
QPoint  p
)

Execute the popup window.

int exec (  self,
int  x,
int  y
)

Execute the popup window.

hideEvent (  self,
QHideEvent  e
)

Catch hide events.

keyPressEvent (  self,
QKeyEvent  e
)

Catch key press events.

popup (  self,
QPoint  pos
)

Open the popup window at position pos.

resizeEvent (  self,
QResizeEvent  resize
)

The resize event. Simply resizes the main widget to the whole widgets client size.

setMainWidget (  self,
QWidget  m
)

Set the main widget. You cannot set the main widget from the constructor, since it must be a child of the frame itselfes. Be careful: the size is set to the main widgets size. It is up to you to set the main widgets correct size before setting it as the main widget.

  • Full Index

Modules

  • karchive
  • kcoreaddons
  • kguiaddons
  • kitemmodels
  • kitemviews
  • kplotting
  • kwidgetsaddons
  • solid
  • sonnet
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal