Pietro Bernardi

Show:

What's happening?

  • Comment: grid GetSelectedRow, Cols, Cells return empty list

    Sorry, I can't agree with your response, maybe it's my fault as I didn't explain it well. So once more and more simple: 1) Selecting first and second _ROW_ of grid with mouse only, on screen first and second row are blue (selected), method GetSelectedRows returns list [0,1], methods GetSelectionBlockTopLeft and GetSelectionBlockBottomRight return empty lists- OK 2) Selecting first and...

    2008-03-21 09:37:54 UTC in wxWidgets

  • grid GetSelectedRow, Cols, Cells return empty list

    Selection of cells, rows or columns made with mouse only or with Ctrl+mouse: GetSelectedSomething acts well, returned correspondent list. Selection made with Shift+mouse shows selection on screen (blue), but methods GetSelectedXX return always empty list. You can play with alledged script. Run it from shell window, make selection with mouse only or with Ctrl+mouse and click 'Show...

    2008-03-17 12:01:18 UTC in wxWidgets

  • wrong indentation (aka unknown PEP 8)

    From PEP 8 - Style guide: Indentation Use 4 spaces per indentation level. For really old code that you don't want to mess up, you can continue to use 8-space tabs. Tabs or Spaces? Never mix tabs and spaces. The most popular way of indenting Python is with spaces only. The second-most popular way is with tabs only. Code indented with a mixture...

    2008-03-11 09:37:23 UTC in Python Interface to PostgreSQL

  • Unicode value can't be converted?

    All versions of PgSQL (including last one, 2.5.1) have this omission: Unlike StringType, UnicodeType can't be converted to PgNumeric; see example: >>> from pyPgSQL import PgSQL >>> a = '10.1' >>> b = PgSQL.PgNumeric(a) >>> b >>> c = u'10.1' >>> d = PgSQL.PgNumeric(c) Traceback (most recent call last): File "", line...

    2008-03-11 09:14:20 UTC in Python Interface to PostgreSQL

  • Comment: PgNumeric += is strange

    IMHO you are right, it's worse, this bug affects not only '+='. See this: >>> ZERO = PgSQL.PgNumeric('0') >>> a = ZERO; b = ZERO; b = b + 1; c = ZERO >>> print ZERO,a,b,c 0 0 1 0 >>> a = ZERO; b = ZERO; b += 1; c = ZERO >>> print ZERO,a,b,c 1 1 1 1 >>> ZERO = PgSQL.PgNumeric('0') >>> a = ZERO; b = ZERO; b = b - 1; c = ZERO >>> print ZERO,a,b,c 0 0 -1 0 >>> a = ZERO; b = ZERO; b -=...

    2008-03-09 14:40:06 UTC in Python Interface to PostgreSQL

  • SpinCtrl error

    After creating SpinCtrl widget and setting range widget shows min limit as initial value but its method GetValue returns zero. See spin.py file, widget shows 1 and without acting on arrows returns zero as its value. wxWidgets Library (wxGTK port) Version 2.8.4 (Unicode), compiled at Sep 12 2007 06:42:44 Runtime version of toolkit used is 2.12. The compile-time GTK+ version is 2.11.6.

    2008-02-20 11:43:43 UTC in wxWidgets

About Me

  • 2008-02-20 (2 years ago)
  • 2014513
  • bpietro2 (My Site)
  • Pietro Bernardi

Send me a message