- PyObject * wndMgrSetUnusableSlot(PyObject * poSelf, PyObject * poArgs)
- {
- UI::CWindow * pWin;
- if (!PyTuple_GetWindow(poArgs, 0, &pWin))
- return Py_BuildException();
- int iSlotIndex;
- if (!PyTuple_GetInteger(poArgs, 1, &iSlotIndex))
- return Py_BuildException();
- if (!pWin->IsType(UI::CSlotWindow::Type()))
- return Py_BuildException();
- UI::CSlotWindow * pSlotWin = (UI::CSlotWindow *)pWin;
- pSlotWin->SetUnusableSlot(iSlotIndex);
- return Py_BuildNone();
- }
- PyObject * wndMgrSetUsableSlot(PyObject * poSelf, PyObject * poArgs)
- {
- UI::CWindow * pWin;
- if (!PyTuple_GetWindow(poArgs, 0, &pWin))
- return Py_BuildException();
- int iSlotIndex;
- if (!PyTuple_GetInteger(poArgs, 1, &iSlotIndex))
- return Py_BuildException();
- if (!pWin->IsType(UI::CSlotWindow::Type()))
- return Py_BuildException();
- UI::CSlotWindow * pSlotWin = (UI::CSlotWindow *)pWin;
- pSlotWin->SetUsableSlot(iSlotIndex);
- return Py_BuildNone();
- }