• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux wxAnyThread Download

wxAnyThread

November 11, 2009
Enables calling wxPython object methods from any thread.
Version 0.1.3
License Public Domain
Platform Linux
Supported Languages English
Homepage pyenchant.sourceforge.net
Developed by Ryan Kelly
If you're a Python developer working with wxPython, wxAnyThread is a module you should definitely consider. This tool makes it possible to call methods on wxPython objects from any thread, even if those methods alter the state of the GUI.

As you may know, in wxPython, invoking methods that alter the GUI from any thread other than the one running the main event loop can cause issues. Normally, other threads must use events to communicate with the GUI thread. Although there are some built-in shortcuts to help with this, such as wx.CallAfter, these aren't always ideal and they don't cover all aspects of a function call.

With wxAnyThread, you can safely and easily invoke methods from any thread without worrying about thread safety. This module works transparently and propagates return values and exceptions back to the calling thread.

The main interface of wxAnyThread is the "anythread" decorator. When applied to a method, it makes the method safe to call from any thread. Here's an example:

```
class MyFrame(wx.Frame):
@anythread
def GetSomeData():
dlg = MyQueryDialog(self,"Enter some data")
if dlg.ShowModal() == wx.ID_OK:
resp = dlg.GetResponse()
return int(resp)
else:
raise NoDataEnteredError()
```

In this example, the GetSomeData method can now be directly invoked from any thread. The calling thread will block while the main GUI thread shows the dialog, and will then receive a return value or exception as appropriate.

Overall, if you're looking for a way to simplify your wxPython development and make your methods callable from any thread, wxAnyThread is definitely worth checking out.
What's New

Version 0.1.3: N/A

Free Download 2K
316
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

SpugSpam
SpugSpam is a spam filtering software that uses confirm-response technique to block ...
dropline GNOME
Dropline GNOME is a customized version of GNOME Desktop that facilitates Slackware ...
taKesum
The taKesum project provides a tool that helps users calculate sha1sum in ...
SpeedX
SpeedX is a software that offers a throwback to classic racing games, ...
Vivid Saturation
Vivid Saturation is a plugin that enhances image saturation by leveraging a ...
Net::MAC::Vendor
This software allows users to easily search for the vendor of a ...
Pedit
The Pedit software is a user-friendly editor designed to interactively modify and ...
KLetterWizard
KLetterWizard Unicode is an updated variant of KLetterWizard software.
Ace::Graphics::Panel
The software supports PNG graphics of Ace::Sequence::Feature objects.
gulog
Gulog is a software utility designed as a GTK UUCP log and ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.