Git Product home page Git Product logo

gui2py's People

Contributors

javiermarcon avatar reingart avatar spametki avatar

Watchers

 avatar  avatar

gui2py's Issues

Non ASCII text input raises UnicodeEncodeError in example form

What steps will reproduce the problem?
1. Create a table insert form with the gui2py form example
2. Pass non ascii data to the wx text fields in the html widget

What is the expected output? What do you see instead?

A web2py error is shown in terminal:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 7: 
ordinal not in range(128)

Please use labels and text to provide additional information.

Not sure, but i think it is only reproduced when using the PostgreSQL db engine.

System Info:
Mandriva GNU/Linux, PostgreSQL 8.4, web2py 1.99.2, Python 2.6.5, gui2py hg 
project clone

Here is the Python error message.

#####################################################

Traceback (most recent call last):
  File "/home/alan/gestionlibre_gui-hg/controllers/appadmin.py", line 191, in create
    if config.session.form.accepts(evt.args, formname=None, keepvalues=False, dbio=False):
  File "/home/alan/web2py/gluon/sqlhtml.py", line 1075, in accepts
    hideerror=hideerror,
  File "/home/alan/web2py/gluon/html.py", line 1798, in accepts
    status = self._traverse(status,hideerror)
  File "/home/alan/web2py/gluon/html.py", line 743, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/alan/web2py/gluon/html.py", line 743, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/alan/web2py/gluon/html.py", line 743, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/alan/web2py/gluon/html.py", line 743, in _traverse
    newstatus = c._traverse(status,hideerror) and newstatus
  File "/home/alan/web2py/gluon/html.py", line 750, in _traverse
    newstatus = self._validate()
  File "/home/alan/web2py/gluon/html.py", line 1566, in _validate
    (value, errors) = validator(value)
  File "/home/alan/web2py/gluon/validators.py", line 530, in __call__
    value=str(value)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 7: 
ordinal not in range(128)


Original issue reported on code.google.com by [email protected] on 30 Nov 2011 at 3:36

ListView sorting of numbers

What steps will reproduce the problem?
1. Set up a gui.ListView with at least 1 gui.ListColumn
2. Populate the gui.ListColumn with numbers (must be strings)
3. Run your gui code
4. Sort the list by clicking on the col name in the gui

What is the expected output? What do you see instead?
I want the numbers to be sorted in correct ascending or descending order. 
Currently they are sorted as such: 1, 11, 2, 2345, 3.

What version of the product are you using? On what operating system?
Current version from github 
(https://github.com/reingart/gui2py/commit/b5a37bc7a8e6aa88e8a38acae7e49f0f07dd1
168)

Please provide any additional information below.
I've attached a file showing screenshots of the current results. I've clicked 
on the col name "Laps".

Original issue reported on code.google.com by [email protected] on 15 Sep 2014 at 4:38

Attachments:

ListView sort_order ignored

What steps will reproduce the problem?
1. Create a new gui.ListView with sort_order='descending'
2. Add items to the list
3. Run your code

What is the expected output? What do you see instead?
The selected sort_column should list items in descending order. Instead the 
list remains sorted in ascending order.

What version of the product are you using? On what operating system?
Latest version of gui2py from github. wxPython3.0-win32-py27.



Original issue reported on code.google.com by [email protected] on 15 Sep 2014 at 7:24

model undefined in GridEvent in event.py

What steps will reproduce the problem?
1. create a GridView and add an onclick action
2. click on the grid
3.

What is the expected output? What do you see instead?
The action should be called, but instead there is an error in GridEvent in 
event.py. It includes a reference to detail=model(wx_item) but the line 
defining model is commented out. 

What version of the product are you using? On what operating system?

0.9b on Mac OS X but the same error exists in 0.9.3. 

Please provide any additional information below.

commenting out the detail=model(wx_item) line works fine. 

Original issue reported on code.google.com by [email protected] on 10 Oct 2013 at 6:40

Support for web2py controller action syntax

In order to share controller code with standard web2py applications, gui2py 
should handle functions without arguments as actions (a block of code that 
process the output and passes it to a linked view).

Also, a way of selecting wich actions are to be exposed by gui2py (and wich by 
web2py) would be necessary, since not all actions designed for web2py will work 
with gui2py.

Finally, a mechanism to call wx functions safely (without conflicts at the 
web2py environment) should by provided within the gui2py application so the 
desktop app would not be limitated by the web2py features.

Original issue reported on code.google.com by [email protected] on 21 Dec 2011 at 11:17

Support wxPython hotkeys with the in HTML accesskey attribute

gui2py should accept this code in html input and convert it to wx hotkeys:

<a href="some/action" accesskey="CTRL-A">

When parsing the html for HTMLwidget input, gui2py could bind a key combination 
event to trigger form submission, open link commands and text input focus.

Original issue reported on code.google.com by [email protected] on 28 Jan 2012 at 1:49

Allow form hidden fields

gui2py should support hidden fields (trough the readable web2py field property) 
and still allow input access from the parent window.

Original issue reported on code.google.com by [email protected] on 7 Feb 2012 at 4:37

import error with 2.9.5.0 gtk2 (classic): No module named adv

What steps will reproduce the problem?

Python 2.7.5 (default, Sep  6 2013, 09:55:21) 
[GCC 4.8.1 20130725 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'2.9.5.0 gtk2 (classic)'
>>> import gui
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gui/__init__.py", line 22, in <module>
    from .controls import Label, Button, TextBox, CheckBox, ListBox, ComboBox, \
  File "gui/controls/__init__.py", line 17, in <module>
    from .textbox import TextBox
  File "gui/controls/textbox.py", line 322, in <module>
    import wx.adv
ImportError: No module named adv
>
What is the expected output? What do you see instead?


What version of the product are you using? On what operating system?
Archlinux

Please provide any additional information below.

Thanks

Original issue reported on code.google.com by [email protected] on 4 Nov 2013 at 4:02

Install on Mac Fails

What steps will reproduce the problem?
1. List of Dependencies
2. Bundling dependencies in installer

What is the expected output? What do you see instead?
Successful install but I see 'No module named adv'

What version of the product are you using? On what operating system?
The third alpha release on OSX Maverics (latest patch level)


Original issue reported on code.google.com by [email protected] on 23 May 2014 at 4:29

Segfault on basic startup

What steps will reproduce the problem?
1. Follow the instructions in the Installation Guide
2.
3.

What is the expected output? What do you see instead?

I expected the designer to start.

I got a segfault:

momerath:gui2py-0.9.3 mgregory$ python
Python 2.7.3 (default, Apr 19 2012, 11:51:19) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.version()
'2.9.4.0 osx-cocoa (classic)'
>>> exit()
momerath:gui2py-0.9.3 mgregory$ python -c "import gui; print gui.__version__"
0.9.3
momerath:gui2py-0.9.3 mgregory$ python -m gui.tools.designer sample.pyw
Segmentation fault: 11
momerath:gui2py-0.9.3 mgregory$ 

What version of the product are you using? On what operating system?

see above (osx 10.8.5)


Original issue reported on code.google.com by [email protected] on 28 Sep 2013 at 12:32

Windows 8.1 - Nothing installed anywhere

What steps will reproduce the problem?
1. Run gui2py-0.9.3-py2x.win32.exe
2. Attempt to locate minimal.pyw
3. Nothing found

What is the expected output? What do you see instead?
Expected a working instaltion

What version of the product are you using? On what operating system?
0.9.3

Please provide any additional information below.
Installation dialog ran and appeared to have installed.  But nothing found on 
target computer

Original issue reported on code.google.com by [email protected] on 27 Oct 2013 at 2:53

web2py-like form widgets

gui2py should allow for a basic usage scenario to choose control/widgets for 
form input based in a predefined set or use a default widget set. Also, there 
should be a common API for extending or replacing form element widgets.

Original issue reported on code.google.com by [email protected] on 7 Feb 2012 at 4:48

readme.rst outdated

To date (2013 05 09) the readme.rst in repo and the 0.9b download are outdated:

1. tells "gui2py requires Python 2.5 or later (up to 2.7)"
so no mention that it runs on python 3+

2. tells "gui2py requires ... and wxPython 2.8 or later. 
wxPython 2.9.4 is required to use the newer features (PropertyGrid, WrapSizer, 
etc.)"

should also tell that wx 2.9.4 (or whatever) is required to run the visual GUI 
designer: it tracebacks with wx version '2.8.12.1 (msw-unicode)':

D:\tmp\gui2py-0.9b>py -2 -m gui.tools.designer
Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "D:\tmp\gui2py-0.9b\gui\tools\designer.py", line 531, in <module>
    from gui.tools.inspector import InspectorPanel
  File "gui\tools\inspector.py", line 16, in <module>
    from gui.tools.propeditor import PropertyEditorPanel
  File "gui\tools\propeditor.py", line 17, in <module>
    import wx.propgrid as wxpg
ImportError: No module named propgrid


Si, si, ya actualizo Mariano, es solo para avisar.


Original issue reported on code.google.com by [email protected] on 10 May 2013 at 1:47

UnicodeDecode error whan launching sample.py or the gui

What version of the product are you using? On what operating system?

Windows 7,
python 2.7,
wxWidgets 2.9.4.0 msw classic but UNICODE

HI ,

What steps will reproduce the problem?

1. make the python's install. All is installed fine, no problem. 
2. When I launch sample.py or the gui, I have an unicodeDecodeError:

ExceptionError: <mywin.notebook.tab0.numeric> in bound method TextBox.__del__ 
of gui...

Sorry I don't know how to get the message directly in a text file.

Regards

Bruno






Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 24 Feb 2014 at 10:59

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.