Package mcbase :: Package widgets :: Module mcdateedit :: Class MCDateEdit
[hide private]
[frames] | no frames]

Class MCDateEdit

source code


Initialize base class Force use of the calendar popup Set default values for calendar properties

Instance Methods [hide private]
 
__init__(self, *args)
Initializes the main MC Widget class
source code
 
set(self, date)
Common set method for MCDateEdit
source code
string
get(self)
Returns current date value.
source code
 
mousePressEvent(self, event)
Call event handler of base class Get the calendar widget, if not already done Set the calendar properties
source code
 
getCalendarPopup(self) source code
 
getFirstDayOfWeek(self) source code
 
setFirstDayOfWeek(self, dayOfWeek) source code
 
resetFirstDayOfWeek(self) source code
 
isGridVisible(self) source code
 
setGridVisible(self, show) source code
 
resetGridVisible(self) source code
 
getHorizontalHeaderFormat(self) source code
 
setHorizontalHeaderFormat(self, format) source code
 
resetHorizontalHeaderFormat(self) source code
 
getVerticalHeaderFormat(self) source code
 
setVerticalHeaderFormat(self, format) source code
 
resetVerticalHeaderFormat(self) source code
 
isNavigationBarVisible(self) source code
 
setNavigationBarVisible(self, visible) source code
 
resetNavigationBarVisible(self) source code
 
getModelCode(self)
Returns modelCode (Inherited from mcbase.widgets.mcwidget.MCWidget)
source code
 
resetModelCode(self)
Resets the modelCode of the widget (Inherited from mcbase.widgets.mcwidget.MCWidget)
source code
 
setModelCode(self, modelCode=None)
Sets the modelCode of the widget (Inherited from mcbase.widgets.mcwidget.MCWidget)
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  calendarPopup = QtCore.pyqtProperty('bool', fget= getCalendarP...
Property firstDayOfWeek: Qt::DayOfWeek Get: getFirstDayOfWeek() Set: setFirstDayOfWeek() Reset: resetFirstDayOfWeek()
  firstDayOfWeek = QtCore.pyqtProperty('Qt::DayOfWeek', fget= ge...
Property gridVisible: bool Get: isGridVisible() Set: setGridVisible() Reset: resetGridVisible()
  gridVisible = QtCore.pyqtProperty('bool', fget= isGridVisible,...
Property horizontalHeaderFormat: QCalendarWidget::HorizontalHeaderFormat Get: getHorizontalHeaderFormat() Set: setHorizontalHeaderFormat() Reset: resetHorizontalHeaderFormat()
  navigationBarVisible = QtCore.pyqtProperty('bool', fget= isNav...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 

Initializes the main MC Widget class

Overrides: object.__init__
(inherited documentation)

set(self, date)

source code 

Common set method for MCDateEdit

Parameters:
  • date (datetime.date) - Date

get(self)

source code 

Returns current date value.

Returns: string
Current Date Value

Class Variable Details [hide private]

calendarPopup

Property firstDayOfWeek: Qt::DayOfWeek Get: getFirstDayOfWeek() Set: setFirstDayOfWeek() Reset: resetFirstDayOfWeek()

Value:
QtCore.pyqtProperty('bool', fget= getCalendarPopup)

firstDayOfWeek

Property gridVisible: bool Get: isGridVisible() Set: setGridVisible() Reset: resetGridVisible()

Value:
QtCore.pyqtProperty('Qt::DayOfWeek', fget= getFirstDayOfWeek, fset= se\
tFirstDayOfWeek, freset= resetFirstDayOfWeek)

gridVisible

Property horizontalHeaderFormat: QCalendarWidget::HorizontalHeaderFormat Get: getHorizontalHeaderFormat() Set: setHorizontalHeaderFormat() Reset: resetHorizontalHeaderFormat()

Value:
QtCore.pyqtProperty('bool', fget= isGridVisible, fset= setGridVisible,\
 freset= resetGridVisible)

navigationBarVisible

Value:
QtCore.pyqtProperty('bool', fget= isNavigationBarVisible, fset= setNav\
igationBarVisible, freset= resetNavigationBarVisible)