maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] GRead : yet another Google Reader application... (PyQt) (https://talk.maemo.org/showthread.php?t=60564)

fpp 2010-10-05 08:59

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
It's probably not KhtEditor as I have it too and scrolling in item view works in GRead. I don't have PyGtkEditor but IMHO it is obsolete and has been replaced by KhtEditor.

naj 2010-10-06 08:51

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
It has something to do with the qwebviewselectionsuppressor, because it works again when I disable the selectionsuppressor. Unfortunately then text selection gets active again and selects all text I scroll over...
Will look into it some more this evening.

naj 2010-10-09 20:34

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Hm, I did look into it. The event handling etc seems to be fine. Just to make sure: Which pyqt versions are you using? I am currently running on 4.7.5.

fpp 2010-10-10 20:38

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Quote:

Originally Posted by Twidi (Post 833439)
fpp : i just commit some work about views and we have now a maemo4 view... but with nothing, except that the two bugs (hint and animation) are not here anymore (i hope so)
Now for the views we have :
  • basic
    • mobile
      • maemo4
      • maemo5

Okay, usual little weekend report :-)

Good news:

1) confirmed: with the new view, GRead can indeed be launched without any modifications in Maemo4, thanks for that !

2) the font size issue in the first two views (feeds/items) can be hacked easily (if not subtly :-). I just added one line to feedlist.py, class FeedListView, __init__ method, after the call to super() :
Quote:

self.win.setStyleSheet("font-size: 20pt")
Does the job nicely -- at last I can read the titles :-)

The bad news is that I still don't really understand how all that stuff works, and how I could add it only to the maemo4 view. Right now of course it applies to all views: on the N900 the font is just a bit larger (actually better for my old eyes :-), but on the PC it's just huge !

PS: also on Windows, GRead used to open its three windows on top of each other, slightly tiled. In this new version windows pop up all over the place... I only use it for testing, but it's strange :-)

Twidi 2010-10-13 20:24

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
naj : i also have qt 4.7.5, with python 2.5, and i don't have this problem :(

fpp : for maemo 4 it's not hard at all. Just define in views/maemo4/__init__.py a __init__ method for the View class (see in views/maemo5/__init__.py for signature) with a call to super and then add your code (it will then be applied to the three windows)

For the desktop version, i don't have windows but on linux, the windows are positioned this way : feed list on the top left corner, item list just below, and item content use the space left on the screen

Twidi 2010-10-13 20:25

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
I need some help to make GRead available to extra-devel : http://talk.maemo.org/showthread.php?t=63775

Perry3D 2010-10-16 10:14

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Hi,
i like to test you application and cloned the latest git sources.
After that i installed the requiered libs from the README.

But if i want to start the application i get an error:
Code:

QMainWindow::addToolBar: invalid 'area' argument
QMainWindow::addToolBar: invalid 'area' argument
Traceback (most recent call last):
  File "src/gread.py", line 16, in <module>
    controller.run()
  File "/home/user/GRead/src/views/basic/controller.py", line 87, in run
  File "/home/user/GRead/src/views/basic/feedlist.py", line 504, in show
  File "/home/user/GRead/src/views/basic/controller.py", line 175, in trigger_settings
AttributeError: 'Controller' object has no attribute 'settings_dialog

What i am doing wrong?

(qt is version 4.6.2, python is version 2.5.4)

fpp 2010-10-16 11:16

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Do you you also have PyQt 4.7.5 installed ?

Twidi 2010-10-16 22:07

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
Thanks i (you !) found a bug which occurs if nobody logged in, so for evey first install of the application !

I'll correct it soon (now ? :D )

Nobody for my extras-devel problem ?

Twidi 2010-10-16 22:30

Re: [Announce] GRead : yet another Google Reader application... (PyQt)
 
The bug is now resolved, thanks Perry3D


All times are GMT. The time now is 16:23.

vBulletin® Version 3.8.8