maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   witter - a python twitter client (https://talk.maemo.org/showthread.php?t=35596)

dwould 2010-07-22 12:08

Re: witter - a python twitter client
 
Quote:

Originally Posted by eothred (Post 759963)
I think you are making a wonderful effort and you have a very advanced application going here.

I have one gripe, there are very many buttons in my opinion, which makes it all feel a bit cluttered. In addition, in landscape mode, they are stealing precious vertical screen space. I would therefore suggest if it would be possible to:
- Perhaps align the buttons vertically on one side when in landscape mode?
- Perhaps hide the less significant buttons under a dropdown menu somehow?
- You could also consider to hide the field where you write your tweet, and bring it up when you click the t in the corner.

To sum up, keep up your great efforts, and thank you very much! :)

if you manually refresh a feed, then the entire tweet box/refresh/tweet button area dissapears to give you more realestate for scrolling. It will come back if you start typing, or switch to another view.

As for the other suggestions, it really boils down to what GTK lets me do easily. I am occasionally tempted to totally re-write the ui ignoring such toolkits, or to try qt etc etc. But that's a huge effort. GTK gives me all the basics, hopefully reasonable performance, and reliability.
However the downsides are that it's not easy to have pop out menus of buttons, or sexy animations etc.
I also am dependant on what event hooks I can use to trigger things. I originally wanted to hide everything when you start scrolling, and bring it back a few seconds after scrolling stops. But that's much harder to do that I wanted, for a start there is no 'scrolling started, scrolling stopped' type events (that I've seen)

As ever if you can point to an open source python prog on maemo that does have elements you like, then I'll happily go look at what I can learn from it. But at the moment I don't have any large chunks of time I can spend doing serious work on witter. So focusing on minor tweaks in reliability, and smaller functional improvements.

extechop 2010-07-23 11:24

Re: witter - a python twitter client
 
Thanks, this seems to be a fairly comprehensive twitter application.

However, I actually had to look at the debug output to figure out what I was doing wrong when trying to tweet pictures. Turns out, one is supposed to first write your tweet, then add your image file. If you just start off with the image file, without anything written in the tweet, witter will fail in a rather mysterious way.

How about adding a warning pop-up for those of us who try to do this? I, for one, was assuming what would happen is that the image would get uploaded to twitpic and the URL appended to the tweet text field, without it being immediately submitted.

planetf1 2010-07-25 22:30

Re: witter - a python twitter client
 
1 Attachment(s)
I'm having an issue with witter 0.3.5-2 whereby the automatic refresh does not appear to be working correctly.

Refresh for timeline is set to 5 minutes, but typically I see
- The "updating" rotating circle indicator continuing to rotate near-continuously
- Tweets often not getting updated for 30 mins or longer -- though sometimes they do
- A manual refresh sometimes updating correctly.

I took a debug log (start, leave for 10 mins+, shutdown, copy log) which is attached

dwould 2010-07-29 10:57

Re: witter - a python twitter client
 
Quote:

Originally Posted by planetf1 (Post 764590)
I'm having an issue with witter 0.3.5-2 whereby the automatic refresh does not appear to be working correctly.

Refresh for timeline is set to 5 minutes, but typically I see
- The "updating" rotating circle indicator continuing to rotate near-continuously
- Tweets often not getting updated for 30 mins or longer -- though sometimes they do
- A manual refresh sometimes updating correctly.

I took a debug log (start, leave for 10 mins+, shutdown, copy log) which is attached

Sorry I've been busy. Weirdly it looks like I hit return accidentally in that file and caused that but, but it's not affected me (but then I run from latest source rather than installed version most of the time)
I've fixed it, but haven't had time to upload the fix. might get a moment this evening.

msaalli 2010-07-29 14:19

Re: witter - a python twitter client
 
Hey Daniel, tried loading my witter and it doesn't update the timeline while the mentions and dms r blank. Ran d xterm command and got:

$ run-standalone.sh python2.5 /opt/witter/witter.py
no text colour setting
no text colour setting
no service setting
No refresh_interval section
No refresh_interval section
end of file, probably no token
No users section, failed loading user accounts
Failed to establish api for Twitter
Failed to establish api for Twitter
Failed to load cached timeline
Failed to load cached timeline
Failed to load cached timeline
/opt/witter/ui/gtkWitter.py:77: GtkWarning: gtk_container_child_set_property: assertion `child->parent == GTK_WIDGET (container)' failed
self.builder.add_from_file("/usr/share/witter/witter.ui")
UI elements loaded from file
signals connected to buttons
Loading Theme Icons
pixbufs loaded for default theme
defining ui buttons
/opt/witter/ui/gtkWitter.py:456: GtkWarning: gtk_widget_shape_combine_mask: assertion `!GTK_WIDGET_NO_WINDOW (widget)' failed
hbox2.shape_combine_mask(self.Mask,0,0)
define portrait keyboard objects
define general window
setting up treeview
adding button to panned area
time to show the window
probably nothing selected
couldn't scroll to item
probably nothing selected
couldn't scroll to item
pixbufs loaded for default theme
pixbufs loaded for default theme
probably nothing selected
couldn't scroll to item
probably nothing selected
couldn't scroll to item
running tasks: 1
Failed to establish api for Twitter
running tasks: 0
running tasks: 1
Failed to establish api for Twitter
running tasks: 0
running tasks: 1
Failed to establish api for Twitter
running tasks: 0
end refresh setup
setting never rotate
trigger landscape orientation

Great job on this app.

dwould 2010-07-29 14:25

Re: witter - a python twitter client
 
Quote:

Originally Posted by msaalli (Post 769257)
Hey Daniel, tried loading my witter and it doesn't update the timeline while the mentions and dms r blank. Ran d xterm command and got:

$ run-standalone.sh python2.5 /opt/witter/witter.py
no text colour setting
no text colour setting
no service setting
No refresh_interval section
No refresh_interval section
end of file, probably no token
No users section, failed loading user accounts
Failed to establish api for Twitter
Failed to establish api for Twitter


Great job on this app.

Basically this shows that you have no user account configured. Did you delete the file /home/user/.witter at some point?
if that file is there, does it contain any content that looks like a user account setup?

I'm afraid it looks at though you'd need to reconfigure your account.

msaalli 2010-07-29 14:42

Re: witter - a python twitter client
 
Don't know how the account was removed. Was using it just before it stopped reloading. Thanks a lot for the help and also for the app.

raothmist 2010-07-29 15:00

Re: witter - a python twitter client
 
The update stop working, if i update manually it dont work. There is a way to fix this?

dwould 2010-07-29 15:16

Re: witter - a python twitter client
 
Quote:

Originally Posted by msaalli (Post 769281)
Don't know how the account was removed. Was using it just before it stopped reloading. Thanks a lot for the help and also for the app.

The only thing I could guess is if something bad went wrong at just the wrong time, eg whilst witter was closing and writing a fresh version of the config file, but before it wrote most of the useful attributes, then it could have this effect.
hard to know though. let me know if you see this happening again.

dwould 2010-07-29 15:18

Re: witter - a python twitter client
 
Quote:

Originally Posted by raothmist (Post 769296)
The update stop working, if i update manually it dont work. There is a way to fix this?

Read the sig. without a log I can't help you.


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

vBulletin® Version 3.8.8