Database object -- X Python Reference Manual

Prev: Xrm Display object Up: Xrm Top: Top

# 4.4. Database object

Database objects are used to represent the `XrmDatabase` type. A database object can be obtained using the widget method `ScreenDatabase`, the display method `GetDatabase`, and the `Xrm` functions `GetFileDatabase` and `GetStringDatabase`.

DestroyDatabase ()
  Returns `None`. This function corresponds with `DestroyDatabase`.

GetResource (name, class)
  Returns `None` or `(type, value)`. This function corresponds with `XrmGetResource`.

LocaleOfDatabase ()
  Returns `locale`. This function corresponds with `XrmLocaleOfDatabase`.

PutFileDatabase (filename)
  Returns `None`. This function corresponds with `XrmPutFileDatabase`.

PutLineResource (line)
  Returns `None`. This function corresponds with `XrmPutLineResource`.

PutResource (specifier, type, value)
  Returns `None`. This function corresponds with `XrmPutResource`.

PutStringResource (specifier, value)
  Returns `None`. This function corresponds with `XrmPutStringResource`.

Prev: Xrm Display object Up: Xrm Top: Top