Results 1 to 2 of 2

Thread: How can I prevent my main application window getting black?

  1. #1
    Join Date
    Feb 2011
    Beans
    27

    How can I prevent my main application window getting black?

    I have made an ubuntu app using Quickly in Ubuntu12.04.In that app's main window there are several buttons.
    Clicking some of them opens new windows of other applications(like, firefox,gnome-sound-recorder) and clicking
    some of them runs commands in the background(like, html2text,espeak ).
    Suppose I have clicked a button which opens Sound Recorder.Now if I start recording in the Sound Recorder my
    main application window gets black. Again when sound recording is done and I close the Sound Recorder window,
    it becomes normal.
    I think this part of my code is responsible for this:

    os.system('gnome-sound-recorder')

    What statement(s) should I use instead of the abovementioned one to prevent my main application window going
    black?Can someone give me some solution?

    Thanks for your help in advance.

  2. #2
    Join Date
    Feb 2011
    Beans
    27

    Re: How can I prevent my main application window getting black?

    Replies:0
    Views: 51

    I am a beginner in Ubuntu app development.I expected that experienced developers will help
    me to solve the problem.Looks like my expectation was wrong.Anyway I am trying to solve the
    problem on my own:
    child_pid = os.fork()
    if child_pid == 0:
    os.system('gnome-sound-recorder')
    else:
    return

    Now, the main app window doesn't get black.
    But, now if I close Sound Recorder my main
    app window gets closed.

    Can someone help me to solve this problem?




Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •