Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8693893
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T00:38:58+00:00 2026-06-13T00:38:58+00:00

Hello friends and colleagues, I am trying to make a function for my program

  • 0

Hello friends and colleagues,

I am trying to make a function for my program on pyt4 – softphone which should determine the status of the network computer.

If the network has lost connection to the Internet the program should to wait until the network is restored and immediately restart the core of my app which self connects to server

Restarting the core is done by the “reload” method.

But I also would like to do cross-platform

Windows, Linux, Darwin,

I found something similar to this link: http://www.themacaque.com/?p=751

Reload method:

def reload(self):
    self.config = ConfigParser.RawConfigParser()
    self.config.readfp(getConfig())
    self.tray.setIcon(self.inactiveIcon)
    self.controller.core.restart_core()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T00:38:59+00:00Added an answer on June 13, 2026 at 12:38 am

    The example you show is trying to use the native implementation because it was written not to depend on Qt4 (I’m the author of the post). If you don’t have a problem in using PyQt4 in all platforms you should consider using the networkAccessibleChanged signals that you can find in the QNetworkAccessManager.

    If that is not possible you will have to write different implementations of the same interface to be used according to the platform in which you are working, for example:

    • Windows: Use the code I posted on the blog.
    • Linux: You can use the DBus signals that NEtworkManager has to notify you of the state of the connection.
    • Mac OS X: SystemConfiguration framework as a similar set of signals to tell you the state of the connection.

    If your software is open source and you don’t care/mind that canonical has the copyright of the code you can take a look at the implementations we wrote for Ubuntu One here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello friends and colleagues I am trying to make a function mute / un
hello friends i m trying to make a inbox system in which we select
Hello friends i am running code given below which contains the setLogTimeEntery function and
hello friends i have created a UDP chatting program through which the clients can
Hello Friends, I make one app in android, in which i take three radio
Hello friends here's my code function dropItems(idOfDraggedItem,targetId,x,y) { var html = document.getElementById('dropContent').innerHTML; if(html.length<=0){ html.innerHTML='<img
hello friends i am having two frames, each frame has a html form which
hello friends i have a check box list which contains all the courses kept
Hello Friends I am trying to compose two images in imagemagick shell script commane
• hello friends, • I have one solution say sol1 ’ which contain one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.