[Sugar-devel] creating seperate dbus-tubes in a single instance of a shared actvity

2009-08-20 Thread sumit singh
Hi all, As far as I can understand from the reading is that when we share an activity, a new channel is created for that activity and in this channel a new dbus-tube is created, through which the data transfer can take place between the xos/laptops. Now, what I want to ask is that is there any

Re: [Sugar-devel] activity not getting installed with sugar-install-bundle

2009-08-08 Thread sumit singh
Hi Tomeu, Thanx a lot for your reply and for all the support you have given throughout the development. Hi, you need to run that command from the terminal activity. Yes, I was using Terminal activity only to do it. Anyways, the problem has been solved now, the activity can now be installed

[Sugar-devel] activity not getting installed with sugar-install-bundle

2009-08-07 Thread sumit singh
Hello all, The xo bundle of my activity is not gettting installed on the xo using the sugar-install-bundle command, however, when i unzip the xo bundle in the /home/olpc/Activities folder , it is gettng installed correctly. The error I am getting while using the sugar-install-bundle command is

Re: [Sugar-devel] Getting a gtk.image from the get_preview function

2009-08-06 Thread sumit singh
Hi Tomeu, Thanx for your reply. I tried this as well, but doesn't seems to work. Here is my code-- http://pastebin.be/20215 , where get_preview2() is similar to get_preview fn and it returns in a similar manner. This is the get preview2 fn--- http://pastebin.be/20216 . The log error can be

Re: [Sugar-devel] Getting a gtk.image from the get_preview function

2009-08-06 Thread sumit singh
Tomeu, Moreover, is it possible to use a hippocanvas surface as a button image or something like a button or a normal image even, I mean can I pack a hippocanvas in a vbox or hbox? Sorry, for asking such a basic question but I don't have any idea about hippocanvas. Regards, sumit On Thu, Aug 6,

Re: [Sugar-devel] Getting a gtk.image from the get_preview function

2009-08-06 Thread sumit singh
I tried it using the self.canvas.window and the self.window both of them , but they still give the same error. On a separate note, would it be a good idea to use the hippoImage itself as the image of the button, I mean wrapping it into a hippobox and then using that box as the image of the

[Sugar-devel] Getting a gtk.image from the get_preview function

2009-08-04 Thread sumit singh
Hi all, I would like to ask what is the best way to get a gtk.Image from the data returned by get_preview function of activity.Activity fn of sugar. I want to make an image buttton using this data. Currently, I am doing it by saving the data in a temp file using the tempfile module of sugar and

[Sugar-devel] Can I use the keep or title_set_by_user key of metadata to store info about my activity

2009-08-03 Thread sumit singh
Hi Tomeu, This is in continuation with our chat yesterday. The write/report activity would be having 3 states , I mean whether the user is working on a blank document , designing a new template or using a previously designed template. So, what I wanted was to save this state as well while saving

Re: [Sugar-devel] Need Help: usb drive not visible in the journal

2009-08-02 Thread sumit singh
and it won't show up in the Journal.  Removing this file can fix both problems.  In any case, it should not harm anything.    You can use the Terminal Activity to do it. James Simmons Date: Sat, 1 Aug 2009 16:16:39 +0530 From: sumit singh sumit.co...@gmail.com Subject: [Sugar-devel] Need

[Sugar-devel] Is using the datastore.find() function reliable and safe?

2009-08-02 Thread sumit singh
Hello all, I want to save files from my activity so that I can retrieve them from the future instances of my activity and also want them to be visible in the journal. So, I am planning to save them in the datastore. And is planning to retrieve them using the datastore.find() function in the

[Sugar-devel] Need Help: usb drive not visible in the journal

2009-08-01 Thread sumit singh
Hi all, I am facing a sort of weird problem at this point. On my xo, my usb drives are not visible in the journal. I mean the icons at the bottom of the journal are not visible. However, to my surprise my usb drives(pendrives) are mounted and I can access them from the terminal. I have tested it

Re: [Sugar-devel] Need Help: usb drive not visible in the journal

2009-08-01 Thread sumit singh
Hello sir, Thank You for your reply. On Sat, Aug 1, 2009 at 5:44 PM, Walter Benderwalter.ben...@gmail.com wrote: What version of Sugar are you running? I am on sugar 0.82 ( 767 build). It was working fine since the last 4-5 months but the problem started suddenly yesterday. re

[Sugar-devel] problem connecting to irc

2009-07-31 Thread sumit singh
Hi all, I am trying to connect to the sugar irc but getting this error- Your reported hostname is banned: You have a host listed in the DroneBL. For more information, visit dronebl.org/lookup_branded.do? Any ideas about how can this be dealt with? Regards, sumit

Re: [Sugar-devel] problem connecting to irc

2009-07-31 Thread sumit singh
...@laptop.org wrote: On Fri, Jul 31, 2009 at 04:46:38PM +0530, sumit singh wrote: I am trying to connect to the sugar irc but getting this error- Your reported hostname is banned: You have a host listed in the DroneBL. For more information, visit dronebl.org/lookup_branded.do? Any ideas about how

[Sugar-devel] fonts in pyabiword

2009-07-23 Thread sumit singh
Hi all, I was trying to use different fonts ( other than the ones available on xo) in write activity which uses pyabiword. I included some of the fonts in the combo box from where we can select the font family, some of them being- Stencil, Times New Roman, DevLys 010 , Dejuvu serif. Now, when I

Re: [Sugar-devel] fonts in pyabiword

2009-07-23 Thread sumit singh
Hi Sayamindu, Thanx a lot for replying. On Thu, Jul 23, 2009 at 10:57 PM, Sayamindu Dasguptasayami...@gmail.com wrote: Hi, While per application/activity fonts are not supported, I suggest you can try to install the fonts in your system during activity startup. The font files should be

Re: [Sugar-devel] help about the get_preview function of activity.Activity class to take screenshots

2009-07-21 Thread sumit singh
Hi Tomeu, Thanx a lot for the function. I would be using it as of now while creating the infrastructure for the activity, would try to provide support to both the new as well as the previous builds. I would be testing the function on my 0.82 build soon. Moreover, I am also planning to move to

Re: [Sugar-devel] proper use of self.set_canvas function

2009-07-20 Thread sumit singh
Hi Jim, Thanx a lot for your reply. Well, right now I am planning to do that by using a gtk.notebook without tabs and borders, though I would be firstly testing how it would look. The idea you suggests seems to be good and I had a look at the screen shots, they really look nice. In case the

[Sugar-devel] help about the get_preview function of activity.Activity class to take screenshots

2009-07-20 Thread sumit singh
Hi everyone, Can anyone please guide me about the proper use of the get_preview function of the activity.Activity class of sugar. I had a look at its api, it seems to be returning a dictionary sort of thing which is called as the png image. What I want to do is to save this image somewhere in the

Re: [Sugar-devel] proper use of self.set_canvas function

2009-07-20 Thread sumit singh
Hi Tomeu, First of all thanx a lot for all the help you have provided. Yes, I think Jim's idea is good. Thanx Jim again. However, right now I am going with a notebook, I tried to implement it and it seems to be working fine and the looks are just like those with a hbox. . Regards, sumit On Mon,

Re: [Sugar-devel] help about the get_preview function of activity.Activity class to take screenshots

2009-07-20 Thread sumit singh
Martin and Tomeu, Martin, thanx a lot for such a detailed answer. I have got what you want to say. But the problem with me right now is that I think the get_preview function is available only in the latest release of sugar 0.84 because I am on 0.82, and my xo gives an error -- Activity module

[Sugar-devel] Proper use of self.set_canvas function

2009-07-19 Thread sumit singh
Hi everyone, I would like to discuss about the set_canvas function of the activity.Activity class, I can understand that it is used to define the current working area of our activity. But , I want something of the sort that when I start my activity the current working area would be a