Jump to content

Bonus Page multiple opening


Recommended Posts

I have a problem with a bonus page:

 

Screen:

 

uMGAg.jpg

        def __BonusPage(self):
                import PaginaBonusuri
                global BPisLodaded
                try:
                        if BPisLodaded == 0:
                                BPisLodaded = 1
                                exec 'PaginaBonusuri.BonusBoardDialog().Show()'
                        else:
                                exec 'PaginaBonusuri.BonusBoardDialog().Hide()'
                                BPisLodaded = 0
                except ImportError:
                        import dbg,app
                        dbg.Trace('PaginaBonusuri.py Importing error')
                        app.Abort

Script:  http://pastebin.com/cWarBrvW

 

Thanks in advance.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Active Member
def __BonusPage(self):
	try: import PaginaBonusuri
	except:
		import dbg,app
		dbg.Trace('PaginaBonusuri.py Importing error')
		app.Abort
	global BPisLodaded
	if BPisLodaded == 0:
		BPisLodaded = 1
		PaginaBonusuri.BonusBoardDialog().Show()
	elif BPisLodaded == 1:
		PaginaBonusuri.BonusBoardDialog().Hide()
		BPisLodaded = 0

try with this

Link to comment
Share on other sites

  • 4 months later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.