Opened 8 years ago

Closed 8 years ago

#102 closed enhancement (fixed)

move all the threads to the Main

Reported by: zhangjr Owned by: yanll
Priority: major Milestone: pre-alpha
Component: general Version: 0.2
Keywords: Cc:
Blocked By: Blocking:
Parent ID: Parent Tickets:
Estimated Number of Hours: 0.0 Add Hours to Ticket: 0
Billable?: yes Total Hours: 0

Description

All the threads should be independent and well-managed. The number of threads should be decrease as possible as you can.

Subtickets

Child Tickets

Change History (3)

comment:1 Changed 8 years ago by zhangjr

  • Version changed from 0.1 to 0.2

comment:2 Changed 8 years ago by zhangjr

remove the Global app and top.

myapp = QtGui?.QApplication(sys.argv)

mytop = mywindow(myapp)
icon = QtGui?.QIcon('img/logo.jpg')
mytop.setWindowIcon(icon)
mytop.setWindowTitle('GPPD')

mytop.show()

# create thread

#myapp.exec_()

atexit.register(exit_handler, mytop)
sys.exit(myapp.exec_())

comment:3 Changed 8 years ago by zhangjr

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.