[Gambas-user] Picture box problem
Mukul Khullar
auditmk at ...626...
Fri Feb 8 11:33:31 CET 2008
Thank you all for my previous Shell command query. I have another problem.
Actually, I am generating some kind of image file for my project which
changes according to the option selected on my GUI. I am displaying it using
a picture box.
But the problem is that, since I am giving the path of the image file, it
doesn't refresh and shows the last image(maybe cached)itself.
I tried to use picturebox.refresh , even main form.refresh, but to no use.
I suppose, the picture box takes the image into a buffer, and next time if
the same path is specified, it uses the same image(the name of the image
being the same). But, since the image file is changing on the hard disk, it
should take the refreshed path(image file).
How can I do the same? I hope i've been able to describe my problem.
P.s In short, the path given on the picturebox.picture property loads the
same image file, even when the picturebox.picture property is set again(with
the same path,though refreshed image file). Please help.
Thanks once again,
Mukul Khullar.
On Feb 8, 2008 3:26 PM, <gambas-user-request at lists.sourceforge.net> wrote:
> Send Gambas-user mailing list submissions to
> gambas-user at lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> or, via email, send a message with subject or body 'help' to
> gambas-user-request at lists.sourceforge.net
>
> You can reach the person managing the list at
> gambas-user-owner at lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gambas-user digest..."
>
>
> Today's Topics:
>
> 1. Re: no fonts at all (Charlie Reinl)
> 2. Re: Strange second instance that never opens (Ron Onstenk)
> 3. Re: Ubuntu 7.10 and the database manager (javier romero)
> 4. Re: Ubuntu 7.10 and the database manager (Benoit Minisini)
> 5. OPEN DMX USB Failed to open with Serial Port (2020)
> 6. Miscellaneous routines for text box validation (richard terry)
> 7. Re : Re: SHELL command problem (Mukul Khullar)
> 8. Re: Re : Re: SHELL command problem (Stefano Palmeri)
> 9. Re: Re : Re: SHELL command problem (rolf)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 07 Feb 2008 21:37:26 +0100
> From: Charlie Reinl <Karl.Reinl at ...9...>
> Subject: Re: [Gambas-user] no fonts at all
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <1202416646.5733.2.camel at ...40...>
> Content-Type: text/plain; charset=utf-8
>
> Am Donnerstag, den 07.02.2008, 15:54 +0100 schrieb Benoit Minisini:
> > On mercredi 6 f?vrier 2008, Charlie Reinl wrote:
> > > Am Sonntag, den 20.01.2008, 14:12 +0100 schrieb scatman:
> > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini:
> > > > > On dimanche 20 janvier 2008, scatman wrote:
> > > > > > Am Sonntag, 20. Januar 2008 schrieb Benoit Minisini:
> > > > > >
> > > > > > Hello,
> > > > > >
> > > > > > > >
> open("/var/cache/fontconfig/51b4782270b1a913b397305b70e2eca3-x86-
> > > > > > > >64 .cac he-2 ", O_RDONLY) = 14
> > > > > > > >
> > > > > > > > and so on.
> > > > > > > >
> > > > > > > > very strange.
> > > > > > >
> > > > > > > Which GUI library do you use: QT or GTK+ ?
> > > > > >
> > > > > > QT-3.3.8-r4
> > > > >
> > > > > Does it change anything if you run a Gambas project by typing
> 'gbx3 -p'
> > > > > in a console inside the project directory?
> > > >
> > > > No, it?s the same. See Attachment.
> > >
> > > Salut,
> > >
> > > had my first go with the gambas2 (from svn 1061) today on gentoo.
> > >
> > > after 'gambas2' on the prompt, I had that ( and see also the attached
> > > png)
> > >
> > > Fontconfig warning: no <cachedir> elements found. Check configuration.
> > > Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir>
> > > Fontconfig warning: adding <cachedir>~/.fontconfig</cachedir>
> >
> > The messages tell that there is a fontconfig configuration problem. Do
> you
> > have the same message if you run another QT3 application?
>
> Salut,
>
> I tried some, here the output :
>
> charlie at ...351... ~ $ kdevelop
> QObject::connect: No such slot MakeWidget::slotDocumentOpened(const
> KURL&)
> QObject::connect: (sender name: 'unnamed')
> QObject::connect: (receiver name: 'make widget')
> QLayout "unnamed" added to IndexView "unnamed", which already has a
> layout
> kdecore (KAction): WARNING: KAction::initPrivate(): trying to assign a
> shortcut (Alt+Ctrl+Shift+N) to an unnamed action.
>
> charlie at ...351... ~ $ qtconfig
> charlie at ...351... ~ $ qtdemo
> charlie at ...351... ~ $
>
> Amicalment
> Charlie
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 7 Feb 2008 22:23:48 +0100
> From: Ron Onstenk <ronstk at ...239...>
> Subject: Re: [Gambas-user] Strange second instance that never opens
> To: gambas-user at lists.sourceforge.net
> Message-ID: <200802072223.48843.ronstk at ...239...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Thursday 07 February 2008 12:22, MaxVK wrote:
> >
> > >.....
> > > Icon[en_GB]=sourcebank '<-----------------
> > >
> > >the icon should be in one of the KDE direrctories for this line
> >
> > Iv not manually created any files, Iv used the Menu item installed by
> the
> > Gambas package (Which included the icon itself) and the Menu item that I
> > created from within the menu editor (I chose the icon from the list, but
> > that was it - I didn't specify any custom locations).
> >
> > >In both desktop files are two icons layered above each other??
> > >Try without the country_lang designation
> >
> > Layered icons? I wouldn't even know how to do that, so unless Gambas or
> the
> > Ubuntu menu editor did it I doubt thats the case. I also didnt specify
> any
> > language designation - these are things that have been done by the menu
> > editor or by the Gambas package.
> >
> > Max
>
> In both desktop files you have to key/value pairs for an icon.
>
> File1:
> > Icon=/usr/share/pixmaps/sourcebank.png ? ?'<-----------------
> > Icon[en_GB]=sourcebank ? ?'<-----------------
>
> and
>
> File2:
> > Icon[en_GB]=sourcebank ? ?'<-----------------
> > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png
>
> There should be normal only one icon=iconfile pair
> and should unique in the section.
> If the country/language is in use like [en_GB] they
> should also unique in the section.
>
> In file2 you have 2 times Icon[en_GB]=....
> For both files the 2 icon entries point use a different
> path for the icons.
>
> So in both files the key/value must be normal
> File1:
> > Icon=/usr/share/pixmaps/sourcebank.png
> > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png
> or
> > Icon=sourcebank
> > Icon[en_GB]=sourcebank
>
>
> File2:
> > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png
> > Icon[en_GB]=/usr/share/pixmaps/sourcebank.png <--- this is double, not
> need to set
> or
> > Icon[en_GB]=sourcebank
> > Icon[en_GB]=sourcebank <--- this is double, not need to set
>
> Hope it is more clear now :=)
>
> Ron
>
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 7 Feb 2008 22:27:39 +0000
> From: javier romero <cjro99 at ...67...>
> Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <BLU128-W11A9B450A28A9173E3F41CDB2E0 at ...693...>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
>
> ----------------------------------------
> > From: sourceforge-raindog2 at ...94...
> > To: gambas-user at lists.sourceforge.net
> > Date: Tue, 5 Feb 2008 23:40:16 -0500
> > Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager
> >
> > On Tuesday 05 February 2008 14:51, Benoit Minisini wrote:
> >> So I'd like to have more precision from the people that had
> >> problems with the database manager on Ubuntu 7.10, and just said
> >> "it does not work".
> >
> > Here is a screenshot of the gambas2 database manager working on Ubuntu
> > 7.10 (the 64-bit version, no less.) Look at the console in the
> > background to see the contents of /etc/issue and uname -a.
> >
> > http://www.kudla.org/gdbm-worksforme.png
> >
> > Rob
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> finally i know whats happens. It was the width of the form, i resize there
> an the data form now is show.
> Here are 3 screenshots
>
> firts with the original size(the instalation width), the data form is not
> "show"
> second i resize the table form
> and third reload the data form and now is show.
>
> http://www.frocae.org/gambas/Pantallazo1.jpg
> http://www.frocae.org/gambas/Pantallazo2.jpg
> http://www.frocae.org/gambas/Pantallazo3.jpg
>
>
> Regards
> Javier
> _________________________________________________________________
> MSN Noticias
> http://noticias.msn.es/comunidad.aspx
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 7 Feb 2008 23:33:46 +0100
> From: Benoit Minisini <gambas at ...1...>
> Subject: Re: [Gambas-user] Ubuntu 7.10 and the database manager
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802072333.46907.gambas at ...1...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On jeudi 7 f?vrier 2008, javier romero wrote:
> >
> > finally i know whats happens. It was the width of the form, i resize
> there
> > an the data form now is show. Here are 3 screenshots
> >
> > firts with the original size(the instalation width), the data form is
> not
> > "show" second i resize the table form
> > and third reload the data form and now is show.
> >
> > http://www.frocae.org/gambas/Pantallazo1.jpg
> > http://www.frocae.org/gambas/Pantallazo2.jpg
> > http://www.frocae.org/gambas/Pantallazo3.jpg
> >
> >
> > Regards
> > Javier
>
> LOL! This is the bug in Splitter that I just fixed for the next 2.1release.
>
> --
> Benoit Minisini
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 7 Feb 2008 18:14:01 -0800 (PST)
> From: 2020 <sylvain.marleau at ...647...>
> Subject: [Gambas-user] OPEN DMX USB Failed to open with Serial Port
> To: gambas-user at lists.sourceforge.net
> Message-ID: <15348079.post at ...1379...>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hello folk,
> I tried to connect to a DMX USB device with Gambas 2.0 Serial Port
> example,
> but freeze wen I click on open (Button1).
>
> http://www.nabble.com/file/p15348079/serialport_ss1.png
>
> The driver was loaded during my attempt;
>
> [ 2088.929843] usb 1-8: new full speed USB device using ohci_hcd and
> address
> 7
> [ 2089.024217] usb 1-8: configuration #1 chosen from 1 choice
> [ 2089.025658] ftdi_sio 1-8:1.0: FTDI USB Serial Device converter detected
> [ 2089.025687]
> /build/buildd/linux-source-2.6.22-2.6.22
> /debian/build/custom-source-rt/drivers/usb/serial/ftdi_sio.c:
> Detected FT232BM
> [ 2089.025857] usb 1-8: FTDI USB Serial Device converter now attached to
> ttyUSB0
>
> Any ideas, thanks in advance.
>
> Sylvain.
>
>
>
> --
> View this message in context:
> http://www.nabble.com/OPEN-DMX-USB-Failed-to-open-with-Serial-Port-tp15348079p15348079.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 8 Feb 2008 14:39:07 +1100
> From: richard terry <rterry at ...1822...>
> Subject: [Gambas-user] Miscellaneous routines for text box validation
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802081439.08124.rterry at ...1822...>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi all,
>
> My gambas learning project is progressing well (a contacts database
> manager),
> and I've got the point I can create new people/names/address(es), etc, now
> have to fine tune the gui, so not wanting to re-invent the wheel, I
> wondered
> if anyone had in their possession, or pointers to it, code which would do
> stuff like.
>
> for textboxes:
>
> Autocapitalise, or autocaps
> Date validation routines/formatting routines
> Name auto capitalisation eg for McBeth, or O'Neil etc
>
> Also In VB in the textbox routines one had (index, keyascii) and one
> could
> manipulate the keyascii value to whatever to either exclude keys or
> autocapitalise things etc
>
> I wondered how this worked in gambas, as though I can detect the keypress,
> I
> couldnt see a way to send back a changed key value to the textbox.
>
> Thanks in anticipation.
>
>
> Richard
>
>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 8 Feb 2008 12:14:13 +0530
> From: "Mukul Khullar" <auditmk at ...626...>
> Subject: [Gambas-user] Re : Re: SHELL command problem
> To: gambas-user at lists.sourceforge.net
> Message-ID:
> <b484796a0802072244k32553e7ei82bd19e7240d154a at ...627...>
> Content-Type: text/plain; charset=ISO-8859-1
>
> > Am trying to execute a command "aureport -f -i --summary --failed |
> > /root/Desktop/try" which works really fine on the terminal and creates
> an
> > image file on the root directory.
> > But, when I try to execute the same using SHELL "aureport -f -i
> --summary
> > --failed | /root/Desktop/try", the file gets generated but
> > incorrectly(something like an empty text file). Is there some tweak or
> some
> > way by which I can get this command running, using the SHELL command ?
> >
> > Please help..
> > Thanking you,
> > Mukul Khullar.
>
> >>Try to put a WAIT at the end of the SHELL sentence.
>
> >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT
>
> >>Stefano
>
>
> I have already tried the same command adding WAIT but in vain. Actually,
> the first part of the command sends some data to the 2nd part of the
> command
> through the " | " operator, which is not happening via the SHELL command,
> but happens fine when executed on the terminal. Any suggestions ??
> Thanks,
> Mukul Khullar.
>
>
> ------------------------------
>
> Message: 8
> Date: Fri, 8 Feb 2008 10:14:42 +0100
> From: Stefano Palmeri <rospolosco at ...152...>
> Subject: Re: [Gambas-user] Re : Re: SHELL command problem
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802081014.42189.rospolosco at ...152...>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Alle 07:44, venerd? 8 febbraio 2008, Mukul Khullar ha scritto:
> > > Am trying to execute a command "aureport -f -i --summary --failed |
> > > /root/Desktop/try" which works really fine on the terminal and creates
> an
> > > image file on the root directory.
> > > But, when I try to execute the same using SHELL "aureport -f -i
> --summary
> > > --failed | /root/Desktop/try", the file gets generated but
> > > incorrectly(something like an empty text file). Is there some tweak or
> >
> > some
> >
> > > way by which I can get this command running, using the SHELL command ?
> > >
> > > Please help..
> > > Thanking you,
> > > Mukul Khullar.
> > >
> > >>Try to put a WAIT at the end of the SHELL sentence.
> > >>
> > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT
> > >>
> > >>Stefano
> >
> > I have already tried the same command adding WAIT but in vain.
> Actually,
> > the first part of the command sends some data to the 2nd part of the
> > command through the " | " operator, which is not happening via the SHELL
> > command, but happens fine when executed on the terminal. Any suggestions
> ??
> > Thanks,
> > Mukul Khullar.
>
> Try this:
>
> SHELL "aureport -f -i --summary --failed 2>&1 | /root/Desktop/try" WAIT
>
> Stefano
>
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ------------------------------
>
> Message: 9
> Date: Fri, 8 Feb 2008 10:55:38 +0100
> From: rolf <rolf.frogs at ...221...>
> Subject: Re: [Gambas-user] Re : Re: SHELL command problem
> To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
> Message-ID: <200802081055.38911.rolf.frogs at ...221...>
> Content-Type: text/plain; charset="iso-8859-15"
>
> Hi Mukul
> :
> > > But, when I try to execute the same using SHELL "aureport -f -i
> --summary
> > > --failed | /root/Desktop/try", the file gets generated but
> > > incorrectly(something like an empty text file). Is there some tweak or
>
> > >>Try to put a WAIT at the end of the SHELL sentence.
> > >>
> > >>SHELL "aureport -f -i --summary --failed | /root/Desktop/try" WAIT
> >
> > I have already tried the same command adding WAIT but in vain.
> Actually,
> > the first part of the command sends some data to the 2nd part of the
> > command through the " | " operator, which is not happening via the SHELL
> > command, but happens fine when executed on the terminal. Any suggestions
> ??
>
> Usually subshells in Linux did not have the PATH-variable set (correctly).
> So
> try to use absolut pathes for your commands, like:
>
> /usr/bin/aureport -f -i --summary --failed | /root/Desktop/try
>
> Fine regards
> rolf
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> ------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> End of Gambas-user Digest, Vol 21, Issue 14
> *******************************************
>
More information about the User
mailing list