fpdb/pyfpdb
Mika Bostrom bf2eaa772c Fix window visibility
This fixes the FPDB main window visibility with window managers that use
workspaces instead of virtual desktop(s). On such a system the
application receives WINDOW_STATE_ICONIFIED event when the workspace is
switched. This hides the window.

It wouldn't be too big a problem if the window wouldn't occasionally get
stuck in a "hide-me-loop", where any attempt to unhide/present the
window again triggers the hide routine. The two state events, _ICONIFIED
and _WITHDRAWN are not the same or even mutually exclusive. As such the
old event mask test simply did not cover all the possibilities.

Also, the property 'visible' does not necessarily match reality. It can
be set to true for iconified windows, and false to a visible window. So
a better solution is to not rely on the property, but just track the
wanted visibility state in our own code.

After this simple refactoring, the application window finally seems to
behave properly. [Also, widget.present() automatically calls .show(), so
we can kill one redundant operation.]
2010-08-21 14:24:34 +03:00
..
locale update HU .mo file 2010-08-18 00:27:06 +02:00
regression-test-files Merge branch 'carl' 2010-08-19 22:35:40 +02:00
AbsoluteToFpdb.py Fixes for absolute poker 2010-07-31 22:55:43 +08:00
AlchemyFacilities.py gettextify card, add note about it to alchemy* 2010-08-15 07:31:32 +02:00
AlchemyMappings.py gettextify card, add note about it to alchemy* 2010-08-15 07:31:32 +02:00
AlchemyTables.py gettextify card, add note about it to alchemy* 2010-08-15 07:31:32 +02:00
Anonymise.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
BetfairToFpdb.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
CarbonToFpdb.py Merge branch 'carl' 2010-07-08 22:33:09 +02:00
Card.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
Cards01.png p58 - added HUD from ray 2008-08-18 23:53:25 +01:00
Cards0-HMHUD.png new cards file 2009-03-10 20:31:09 -04:00
Charset.py gettextify charset 2010-08-15 07:27:53 +02:00
Configuration.py Merge branch 'mika' 2010-08-18 04:22:59 +02:00
create-mo-files.sh change mo file creation script, add hungarian mo file 2010-08-15 23:28:22 +02:00
create-po-file.sh the first translation in fpdb! i did a few strings and hardcoded the language to de_DE just for testing. 2010-08-13 02:49:01 +02:00
Database.py Database: Add optional argument for pprinting the player data. 2010-08-19 18:23:26 +08:00
DerivedStats.py add these stats to DB/DerivedStats/SQL: street0_4BChance/Done, other3/4BStreet0 2010-08-19 04:09:24 +02:00
EverleafToFpdb.py tweak cards shown regex 2010-08-02 16:47:32 -04:00
Exceptions.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
Filters.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
fpdb_import.py Importer; Add missing default option 2010-08-19 18:33:43 +08:00
fpdb.pyw Fix window visibility 2010-08-21 14:24:34 +03:00
FulltiltToFpdb.py FTP: Make FTP.fr hand histories parse. 2010-08-18 13:12:11 +08:00
GuiAutoImport.py add missing gettext import 2010-08-15 23:38:13 +02:00
GuiBulkImport.py BulkImport: Add command line option to generate test data 2010-08-19 18:29:10 +08:00
GuiDatabase.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
GuiGraphViewer.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
GuiImapFetcher.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
GuiLogView.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
GuiPlayerStats.py create superclasses for Gui*PlayerStats and *Filters 2010-07-11 05:58:00 +02:00
GuiPositionalStats.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
GuiPrefs.py gettext import for guiprefs 2010-08-16 23:49:50 +02:00
GuiRingPlayerStats.py gettextify GuiRingPlayerStats.py 2010-08-16 04:22:51 +02:00
GuiSessionViewer.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
GuiTourneyPlayerStats.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
GuiTourneyViewer.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
Hand.py Hand: Add optional argument for printing test data 2010-08-19 18:28:10 +08:00
HandHistory.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
HandHistoryConverter.py HHC: Correct error count for unmatched gametype regex 2010-08-18 13:17:42 +08:00
Hello.py gettext-ify Hello.py 2010-08-14 17:38:18 +02:00
HUD_config.test.xml Aggression freq, aggression factor and Overall CBET added 2010-06-16 17:21:49 +02:00
HUD_config.xml.example Merge branch 'eric' 2010-08-08 20:13:07 +02:00
HUD_main.pyw auto-detect language 2010-08-15 20:50:49 +02:00
HUD_run_me.py gettext-ify HUD_run_me.py 2010-08-14 17:52:07 +02:00
Hud.py HUD: add error handler for error reported by phenixrising 2010-08-19 23:17:58 +02:00
ImapFetcher.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
interlocks.py gettext-ify tournesummary and interlocks 2010-08-16 01:58:05 +02:00
logging.conf some work on guidatabase and turn it on 2010-07-19 21:36:45 +01:00
Mucked.py gettext-ify Mucked 2010-08-15 04:07:34 +02:00
OnGameToFpdb.py Revert "remove useless ongametofpdb file" 2010-08-19 07:23:42 +02:00
Options.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
P5sResultsParser.py gettextify and add codepage for P5sResultsParser 2010-08-15 06:28:43 +02:00
PartyPokerToFpdb.py gettextify PartyPokerToFpdb.py 2010-08-16 03:28:17 +02:00
PokerStarsSummary.py gettextify PS Summary, add note about py2exe 2010-08-15 19:46:10 +02:00
PokerStarsToFpdb.py add 8$ limit support, make list look nicer 2010-08-16 00:31:17 +02:00
py2exe_setup.py gettextify PS Summary, add note about py2exe 2010-08-15 19:46:10 +02:00
SQL.py add these to HudCache storing: street0_4BChance/Done, other3/4BStreet0 2010-08-19 06:14:12 +02:00
Stats.py gettextify pyfpdb/Stats.py 2010-08-17 19:50:22 +02:00
Summaries.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
SummaryEverleaf.py Merge branch 'carl' 2010-07-08 22:33:09 +02:00
Tables_Demo.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
Tables.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
TableWindow.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
test_Betfair.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
test_Database.py gettextify some small files 2010-08-15 07:38:44 +02:00
test_Everleaf.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
test_FullTilt.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
test_PokerStars.py change calls to python2 back to python 2010-07-08 20:01:03 +02:00
TestHandsPlayers.py TestHP: Pass name to print function 2010-08-19 19:31:23 +08:00
TournamentTracker.py add missing gettext imports, gettextify TournamentTracker.py 2010-08-15 23:23:17 +02:00
TourneyFilters.py add more missing imports and one _() 2010-08-16 01:41:25 +02:00
TourneySummary.py gettext-ify tournesummary and interlocks 2010-08-16 01:58:05 +02:00
UltimateBetToFpdb.py Merge branch 'carl' 2010-07-08 22:33:09 +02:00
upd_indexes.sql Signed-off-by: fpdb-mme <jUrner@arcor.de> 2009-10-25 00:13:35 +02:00
Win2dayToFpdb.py Merge branch 'carl' 2010-07-08 22:33:09 +02:00
windows_make_bats.py remove debug print; add import to Config; gettextify tables 2010-08-15 21:09:18 +02:00
WinTables.py gettextify some small files 2010-08-15 07:38:44 +02:00
XTables.py Fixes for absolute poker 2010-07-31 22:55:43 +08:00