PythonScript Xojo Plugin

PythonDictionary Class (console safe)

A class that represents a Python dictionary object

PythonEntityBase
   PythonDictionary

class PythonDictionary

Constructors

PythonDictionaryDefault constructor that constructs a PythonDictionary with zero elements.

Properties

Count (console safe) Returns number of items in the dictionary

Methods

BooleanValue (console safe) Gets or sets a Boolean value with given string key.
Clear (console safe) Clears all elements from the dictionary
Contains (console safe) Checks if the dictionary has a element with a given key
Contains (console safe) Checks if the dictionary has a element with a given key
DoubleValue (console safe) Gets or sets a Double value with given string key.
GetKeys (console safe) Gets list of all Keys in the dictionary and returns them as Python3List.
GetValue (console safe) Gets value by given key from the dictionary.
GetValue (console safe) Gets value by given string key from the dictionary
GetValues (console safe) Gets all values from the dictionary and returns them as PythonList
Int64Value (console safe) Gets or sets a Int64 value with given string key.
IntegerValue (console safe) Gets or sets a Integer value with given string key.
ObjectValue (console safe) Gets or sets a Object value with given string key. In this case then Object would be native Xojo object.
Remove (console safe) Removes item from the dictionary by a given string key.
Remove (console safe) Removes item from the dictionary by a given key.
SetValue (console safe) Sets value in the dictionary by a key.
SetValue (console safe) Sets value in the dictionary by a string key.
StringValue (console safe) Gets or sets a String value with given string key.
UInt64Value (console safe) Gets or sets a UInt64 value with given string key.

Supported Platforms:

  • MacOS X Cocoa 32 bit
  • MacOS X Cocoa 64 bit
  • Windows 32 bit
  • Windows 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM