How to open another window using PyQt

0 votes

I showed another window to the user when he clicks 'Go to work' and hide current window. But when I hide current window, there's no application icon in the taskbar. How can I do what I want? I want to show new window and hide current, but the icon in the taskbar is not showing.

def start(self):
        window = MainWindow(self)
        window.show()
        self.hide()

Oct 1, 2018 in Python by bug_seeker
• 15,310 points
1,575 views

1 answer to this question.

0 votes

Switch between self.hide() and self.showMinimized()

def start(self):
    window = MainWindow(self)
    window.show()
    self.showMinimized()
answered Oct 1, 2018 by Priyaj
• 56,160 points

Related Questions In Python

0 votes
0 answers

How to close a window, and then reinitialize it using PyQt

There is a button "btn_closeWin_and_reinit"  in the ...READ MORE

Jul 10 in Python by marceepoo
• 120 points
16 views
+2 votes
2 answers

How to make a laplacian pyramid using OpenCV python?

down voteacceptTheeThe problem is that you're iterating ...READ MORE

answered Apr 3, 2018 in Python by charlie_brown
• 7,710 points
1,096 views
0 votes
1 answer

How to hide a window in the constructor immediately after creation?

You can use QtCore.QTimer class Example(QWidget):     def __init__(self, app):         QWidget.__init__(self)         QTimer.singleShot(0, ...READ MORE

answered Apr 17, 2018 in Python by anonymous
26 views
0 votes
2 answers

how to print the current time using python?

print(datetime.datetime.today()) READ MORE

answered Feb 14 in Python by Shashank
• 1,350 points
33 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 128 views
+1 vote
1 answer

How to create plots using python matplotlib in IPython notebook?

I think you should try: I used %matplotlib inline in ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 56,160 points
104 views
+1 vote
1 answer

How can I map input to output without using dynamic()

Here am talking about my example you ...READ MORE

answered Aug 8, 2018 in Python by Priyaj
• 56,160 points
99 views