Mika Bostrom
27fa27f370
GTK signal handlers need to return True/False
...
Since we deal with minimize/expose/show/hide routines ourselves, we
don't want these signals passed any further.
NOTE: if no return type is specified, it is automatically None which
usually is translated to False. That might trigger some weird behaviour,
up to and including rare and hard to reproduce GTK crashes.
2009-10-26 13:29:32 +02:00
Mika Bostrom
70426a70a0
Merge branch 'master' of git://git.assembla.com/fpdb-eric
2009-10-26 12:12:56 +02:00
unknown
22b3d5de7f
should minimize to tray in windows. windows 7's tray doesn't like it much, but it'll get over it for now
2009-10-26 05:03:25 -04:00
unknown
f15bb627c0
add trayicon, minimize to tray by default (doesn't work quite right on windows)
2009-10-26 01:36:29 -04:00
Worros
a2309f704c
More GuiSessionViewer updates
...
Getting closer to a decent layout
2009-10-23 13:50:06 +08:00
Worros
58707d2022
Update GuiSessionViewer.
...
Still horribly broken, but on its way
2009-10-21 17:22:47 +08:00
sqlcoder
4b0a399ffd
stop fpdb.py accessing fpdb_db directly
2009-10-13 21:53:51 +01:00
Worros
1d0177f6d4
[NEWIMPORT] Finish up Hand import
...
Decided to leave streetXRaisesN alone for the moment
2009-10-13 14:04:19 +08:00
Eric Blade
05ccca63ad
Merge branch 'master' of git://git.assembla.com/fpdboz.git
...
Conflicts:
pyfpdb/fpdb.py
2009-10-09 07:34:13 -04:00
Eric Blade
ee864033ee
Add exception for not being able to connect to MySQL, make use of it to pop up an error box
2009-10-09 07:31:25 -04:00
sqlcoder
7900ebcebe
Tell user what is happening on startup
2009-10-04 17:46:04 +01:00
sqlcoder
c1711c4e2e
refine new date option on hudcache rebuild
2009-09-27 01:42:26 +01:00
sqlcoder
e75d915120
allow hudcache rebuild to only start Hero's stats from chosen date :-)
2009-09-26 23:32:44 +01:00
Eric Blade
993199c010
add sqlcoder to about
2009-09-09 21:04:38 -05:00
Eric Blade
705210a96d
use the "proper" gtk.AboutDialog() for About ... meh
2009-09-09 20:57:16 -05:00
Eric Blade
345e328795
Add Set HH Archive Directory option to Import menu on main, call it if user selects "no" on "create hh directory" prompt
2009-09-09 20:26:44 -05:00
Eric Blade
2bf3aaa1bc
most of the unimplemented stuff goes to warning_box() instead of to log/stdout. Implemented About (via warning_box, w/e)
2009-09-09 18:36:55 -05:00
Eric Blade
2397a59483
add warning_box func to fpdb, add validate_config func, checks existence of hhArchiveBase, pops up warnings if not present
...
hhc traps errors creating folders, need to learn how to make it fail properly afterwards.
2009-09-09 18:20:50 -05:00
Eric Blade
6238e2f896
spacing
2009-09-09 17:41:32 -05:00
Eric Blade
28450b1b8a
remove tons of useless comments from fpdb.py - documentation should say something that isn't blazingly obvious by looking at the code
2009-09-09 05:01:03 -05:00
Matt Turnbull
d2380ba738
merge from futz2 branch
2009-08-28 18:24:51 +01:00
Eric Blade
aa0610dcfa
fpdb: remove error trap on "Recreate Tables" menu option - trapping should be much more localized.
2009-08-16 04:46:41 -05:00
Matt Turnbull
222d713169
too much changes to go into master
2009-08-12 01:46:39 +01:00
sqlcoder
c0ddaad2e5
remove test for msql drivers
2009-08-06 21:12:50 +01:00
sqlcoder
cffe57dfa3
pass sql list through to importer from fpdb.py
2009-08-01 23:29:00 +01:00
sqlcoder
4dd9a8877d
restart python if running an old version and 2.5 or 2.6 is available on PATH (Windows)
2009-08-01 12:45:10 +01:00
eblade
21b859f244
remove error handler on hudcache rebuild menu, if it errors we should know about it
2009-07-31 00:15:25 -04:00
eblade
85c635d1da
remove error handler on Load Profile menu opt (menu opt doesn't work anyway, so it doesn't error)
2009-07-31 00:13:51 -04:00
sqlcoder
38ee98e492
pass sql list from fpdb through guibulkimport to fpdb_import
2009-07-29 06:37:06 +01:00
sqlcoder
298de5dc15
move most stuff from fpdb_db.py to Database.py and simplify db connections in fpdb_import
2009-07-28 23:58:10 +01:00
eblade
47f27cf31f
fpdb.py: Add "Recreate HUD Cache" to Database menu
...
fpdb_db.py: Junk the dropping of indexes/FKs for MySQL INNODB in favor of just telling MySQL to ignore them. Not sure if that works for other MySQL engines or other Database softwares.
2009-07-27 17:28:06 -04:00
sqlcoder
b9d462c175
make graphviewer use Database.py
2009-07-19 21:19:58 +01:00
sqlcoder
0fecdfb2d7
make positional stats use Database.py
2009-07-19 18:28:13 +01:00
sqlcoder
fb4ad79803
use someone else's interprocess locking code instead of python locks/semaphores - needs testing in Linux
2009-07-19 12:28:17 +01:00
sqlcoder
6a69bf512e
use python locks instead of db locks for global lock
2009-07-18 22:21:29 +01:00
sqlcoder
9d9f850753
use Database.py in GuiPlayerStats
2009-07-18 20:46:50 +01:00
Matt Turnbull
79ca83c95a
Merge from ray, minor conflicts
2009-07-15 00:20:26 +01:00
Matt Turnbull
dc6a1c45f9
sqlite - connecting and (re)creating some tables
2009-07-14 00:04:10 +01:00
sqlcoder
56ef131bed
use 1 or 2 Database methods instead of the underlying fpdb_db methods (more to do)
2009-06-30 22:18:15 +01:00
sqlcoder
a3e6c2696f
use Database instead of fpdb_db
2009-06-28 19:19:32 +01:00
sqlcoder
9b50987d0c
add sql param to Database constructor - aim is to have just one SQL instance passed around and to use Database for db connections and methods
2009-06-23 23:44:37 +01:00
sqlcoder
84cc951045
comment out database creation wrongly included from my dev code
2009-06-23 22:05:22 +01:00
sqlcoder
2f0c7e8167
make load_profile reload HUD_config.xml and update status bar
2009-06-23 20:45:11 +01:00
sqlcoder
0afd8e2e70
use do_connect() instead of connect()
2009-06-22 23:43:11 +01:00
sqlcoder
1456104382
make graph viewer use its own db connection
2009-06-22 23:30:54 +01:00
Ray
b1ea38bea9
Add -c config cl option. Fpdb passes cl options to HUD.
2009-06-14 23:14:53 -04:00
sqlcoder
9d87e35082
fix quit option and postgres/windows connecting after last merges
2009-06-09 21:38:30 +01:00
Worros
d8dffb193f
Merge branch 'master' of git://git.assembla.com/mctfpdb
...
Conflicts:
pyfpdb/fpdb.py
2009-06-08 19:20:01 +08:00
Matt Turnbull
95a7ab8e48
Merge branch 'master' of git://git.assembla.com/fpdboz
2009-06-07 21:58:00 +01:00
Matt Turnbull
c1e4c083fe
premerge
2009-06-07 21:57:56 +01:00
sqlcoder
45a303eb25
make global lock work (do nothing) if hands table doesn't exist
2009-06-07 20:07:18 +01:00
Worros
9091efa230
Merge branch 'master' of git://git.assembla.com/fpdb-sql
2009-06-05 09:11:25 +08:00
sqlcoder
401aca4c12
Merge branch 'master' of git://git.assembla.com/fpdboz
2009-06-04 20:29:58 +01:00
sqlcoder
b016c496f2
fix handling of global lock when re-creating tables
2009-06-04 20:27:15 +01:00
Worros
21e7e010bd
Merge branch 'master' of git://git.assembla.com/fpdb-sql
2009-06-01 07:51:04 +08:00
sqlcoder
5b96769de3
implement global lock by locking hands table
2009-05-31 21:59:01 +01:00
sqlcoder
be61b2d253
change quit option to standard 'Quit'
2009-05-31 21:53:10 +01:00
Matt Turnbull
94370a653c
fix conflicts
2009-05-30 16:40:27 +01:00
Worros
a9dac26381
Merge branch 'master' of git://git.assembla.com/fpdb-sql
2009-05-28 22:32:34 +08:00
Worros
3892b3789d
Session breakdown Proof of Concept
...
Only prints some of the session breakdown to stdout at the moment,
otherwise is a copy of PlayerStats with a bunch of stuff commented out.
Looks like:
DEBUG: len(times) 337
DEBUG: len(diffs) 336
DEBUG: len(index[0]) 2
DEBUG: index [54 88]
DEBUG: index[0][0] 54
Hands in session 0: 54 Start: 22/03/2009 07:04 End: 22/03/2009
07:49 Total: 2669
Hands in session 1: 33 Start: 24/03/2009 17:10 End: 24/03/2009
17:35 Total: 1482
I think the Total number has an index incorrect at the moment.
2009-05-26 16:10:27 +08:00
sqlcoder
90b886e77f
another parameter fix to the fpdb.py gui update
2009-05-25 21:30:37 +01:00
sqlcoder
e7532ea497
fix typos in control keys in last release
2009-05-23 22:06:41 +01:00
sqlcoder
061ff083a6
get rid of warning message when starting fpdb
2009-05-23 21:42:26 +01:00
sqlcoder
d811c6b656
add rollback to release locks when db reads are finished
2009-05-23 23:31:56 +08:00
sqlcoder
ee9d69ae5e
more minor cosmetic changes
2009-05-21 23:09:11 +01:00
sqlcoder
93f643a958
fix error when choosing unimplemented menu option
2009-05-20 23:21:50 +01:00
sqlcoder
cee4cade3e
Add hotkeys for stats windows and pass main window into guiplayerstats
2009-05-20 09:58:38 +01:00
sqlcoder
de98d5dd15
remove surplus db variable and debug mysql problem in previous commit
2009-05-04 20:36:11 +01:00
sqlcoder
5111eb1a8f
remove redundant db variable
2009-05-02 21:39:48 +01:00
sqlcoder
882f19a34d
removed redundant db variable
2009-05-02 21:07:52 +01:00
Worros
f6311276a7
Remove some merge noise
2009-04-28 14:50:50 +08:00
sqlcoder
d9d8043888
add rollback to release locks when db reads are finished
2009-04-27 10:45:49 +08:00
Worros
b1aade624f
Change default window size because it bugged me
2009-04-11 04:28:54 +08:00
Ray
460102c3f5
Version 0.11
2009-04-07 10:44:06 -04:00
Worros
b92022fecd
Fix call to get_db_parameters
2009-03-27 23:53:44 +09:00
Worros
1be81ced66
Allow dbname to be something other than fpdb
...
Patch from Rune Nesheim to allow the dbname to be specified on the
command line
2009-03-27 22:53:01 +09:00
Worros
5e5e79f08a
Fix typo
2009-03-23 22:18:22 +09:00
eblade
80c3922bc0
remove pyc, merge with everyone else
...
remove some useless junk in fpdb.display_tab()
2009-03-16 18:35:56 -04:00
Worros
86101c522c
GuiPositionalStats.py
...
New tab, output cols aren't labelled properly but we appear to have
something sane
2009-03-03 20:32:01 +09:00
Ray
5f290ace56
Updated version to 0.10 via new VERSION variable.
2009-01-30 13:00:29 -05:00
eblade
fb9d7c0af2
Add file HUD_run_me, to be run by GuiAutoImport
...
GuiAutoImport: run HUD_run_me instead of HUD_main
HUD_main: Add HUD_removed() function, called by HUD when an individual HUD is closed, eliminates polling them every update; use 'in' operator instead of has_key
HUD: clean up code that deals with lack of font descriptor in config, and notification of what font was selected
HUD: clean up unnecessary use of keys() functions, and 'in' vs has_key
HUD: restore previous definition of reposition_windows(), although i can't make it error at will anymore
Tables: cleanup with keys() and in operator
fpdb: no longer raise an error on duplicate tab, since we currently depend on that, it's not an error, right?
2009-01-06 05:18:45 -05:00
steffen123
c8d12cfe61
p144 - updated table design after comments on draw tables
2008-12-10 03:55:12 +00:00
sqlcoder
4dc15bfd94
pulled and merged from fpdboz
2008-12-07 23:38:33 +00:00
Worros
425997d66a
Merge branch 'master' of git://repo.or.cz/fpbd-bostik
2008-12-07 14:17:05 +09:00
Mika Bostrom
6070066f8a
obtain_global_lock() is a method, not top-level function
2008-12-06 15:16:55 +02:00
Mika Bostrom
c9700fc1a7
Some debugs
2008-12-06 14:34:44 +02:00
Worros
1576387d61
Add GuiPlayerStats to menu
2008-12-06 19:09:18 +09:00
sqlcoder
a824814c0a
sqlcoder initial updates
2008-12-02 00:15:50 +00:00
steffen123
f38cdab8e0
p143 - update title
2008-11-10 02:21:47 +00:00
steffen123
49151a92bf
p142 - commented tourney summary parsing as it fails on me. this is alpha9
2008-11-10 02:02:12 +00:00
steffen123
c739395189
p140 - added CLI option to fpdb.py to control redirection of stderr
2008-11-07 00:14:25 +00:00
Worros
389d9361b9
Update Graph Viewer to use config file, fill Entry with player_name field from the config.
2008-10-25 14:57:29 +08:00
Worros
c48b2f3057
Remove load_default_profile function.
...
All references to load default profile were removed when Ray merged the config files.
Deletes function and all references to it.
2008-10-25 14:45:39 +08:00
Worros
81a6d5f972
Revert label from Ray - Alpha6+ back to Alpha8+
2008-10-25 14:24:10 +08:00
Ray
bc834a9d79
more cleanup of config file consolidation
2008-10-22 10:14:25 -04:00
Ray
6d449b9a2e
more cleanup of config file consolidation
2008-10-21 21:49:17 -04:00
Ray
a719efc6dc
consolidate config files--default.conf no longer needed
2008-10-21 10:22:01 -04:00
steffen123
7833c0c5cd
p136 - title update - alpha7
2008-10-17 05:59:50 +01:00
steffen123
5c73bd7f3b
p136 - title update - alpha7
2008-10-15 18:26:24 +01:00
steffen123
bc15025be5
p135 - updated tv
2008-10-15 18:20:33 +01:00