Skip to main content

Imitatio Ostendendi

Latin for "Display Imitation" - A comprehensive mocking library for tkinter/ttk testing

Features

  • Mock implementations of common tkinter/ttk widgets
  • Support for basic widget operations (insert, delete, configure)
  • Event simulation capabilities
  • Logging for better test debugging
  • Easy integration with unittest.mock

Installation

pip install imitatio-ostendendi

Usage

from imitatio_ostendendi.widgets import Text, Entry, Button
from imitatio_ostendendi.constants import END, NORMAL, DISABLED

class TestMyGUIApp(TestCase):
    def setUp(self):
        # Create mock widgets
        self.text = Text()
        self.entry = Entry()
        self.button = Button()
        
    def test_text_operations(self):
        # Insert text
        self.text.insert("1.0", "Hello World")
        self.assertEqual(self.text._text, "Hello World")
        
        # Delete text
        self.text.delete("1.0", END)
        self.assertEqual(self.text._text, "")
        
    def test_entry_state(self):
        # Test state changes
        self.entry.configure(state=DISABLED)
        self.assertEqual(self.entry._state, DISABLED)

Widget Support

Currently supported widgets:

  • Text
  • Entry
  • Button
  • Frame
  • LabelFrame
  • Label
  • Scrollbar
  • Notebook
  • StringVar
  • IntVar
  • BooleanVar

Why "Imitatio Ostendendi"?

The name comes from Latin:

  • "Imitatio" meaning "imitation" or "mock"
  • "Ostendendi" meaning "to display" or "to show"

Together, they form "Display Imitation" - a fitting name for a library that provides mock implementations of display widgets.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for imitatio-ostendendi 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for imitatio-ostendendi 0.2.0
File Size Uploaded Provenance Actions
imitatio_ostendendi-0.2.0.tar.gz 11.8 kB Without provenance Details for imitatio_ostendendi-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for imitatio-ostendendi 0.2.0
File Interpreter ABI Platform Actions
imitatio_ostendendi-0.2.0-py3-none-any.whl Python 3 none any Details for imitatio_ostendendi-0.2.0-py3-none-any.whl

Total release size: 30.1 kB

Release files / imitatio_ostendendi-0.2.0.tar.gz

Download URL imitatio_ostendendi-0.2.0.tar.gz
Size 11.8 kB
Tags Source
SHA-256 checksum
How to use checksums
98037702d6560eb0677c3c1986d220f1aa4ffcbf7f892cca4075d7212564f28b
BLAKE2b-256 checksum
How to use checksums
025aae390b3b3c3bfeb909bf03feadde9d9d02e26d5e6ba781e1a274f73bd391
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.4

Release files / imitatio_ostendendi-0.2.0-py3-none-any.whl

Download URL imitatio_ostendendi-0.2.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c802108efc633217c426e3775885ad4eac145e84adc6b8fc537fa6f32e1b3215
BLAKE2b-256 checksum
How to use checksums
fffb1b9c716758eb7d1304ae9950853caf9a24028b01c52f80046b0cd926d26a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.4

Security for imitatio-ostendendi 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page