[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QFileDialog::getOpenFileName warning
From:       Jian Ma <jianmarf () gmail ! com>
Date:       2011-11-09 3:18:03
Message-ID: CAP_eYT+pcU=_F-tL2SFvaMRGQg9+Zk4vER3S=C7epyC68q9dGA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Tayfun,

Did you receive the reply from Rafael. I tried his suggestion. It works! I
forgot to cc the reply to pyqt@riverbankcomputing.com. In case you didn't
receive the reply, you can set the QFileDialog option to
DontUseNativeDialog. If you have any questions, please let me know.

Jian

On Tue, Nov 8, 2011 at 2:51 PM, Tayfun Kayhan <tayfun92_kayhan@yahoo.com>wrote:

> I thought that replying mails, that are targeted for whole mail list,
> (added CC) are automatically sent to mail list, instead of the only owner
> of the mail,it seems like not yahoo is as smart as I am :D Thank you.
>
> ------------------------------
> *From:* Jian Ma <jianmarf@gmail.com>
> *To:* Tayfun Kayhan <tayfun92_kayhan@yahoo.com>
> *Sent:* Tuesday, November 8, 2011 6:28 PM
>
> *Subject:* Re: [PyQt] QFileDialog::getOpenFileName warning
>
> Hi Tayfun,
>
> Thank you for your reply.
>
> I guess you need to send(or CC) to pyqt@riverbankcomputing.com instead of
> direct reply to me. You can try it and let me know if it works.
>
>
>
> On Tue, Nov 8, 2011 at 10:35 AM, Tayfun Kayhan <tayfun92_kayhan@yahoo.com>wrote:
>
> Hi, yes and I just noticed that it is the same with openSUSE 11.4 that I'm
> using now. It then must about Py/Qt, i guess.
>
> Btw, May I learn if my reply has only come to you rather than to the mail
> list ? Because I cannot get mails when I send to some mail lists.
>
> Thanks.
>
> ------------------------------
> *From:* Jian Ma <jianmarf@gmail.com>
> *To:* Tayfun Kayhan <tayfun92_kayhan@yahoo.com>
> *Sent:* Tuesday, November 8, 2011 5:19 PM
> *Subject:* Re: [PyQt] QFileDialog::getOpenFileName warning
>
> Hi Tayfun,
>
> Thank you for the reply.
>
> I use SUSE. Do you mean that this problem may relate to the platform? Did
> this problem reappear when you use other OS?
>
> Jian
>
> On Mon, Nov 7, 2011 at 7:02 PM, Tayfun Kayhan <tayfun92_kayhan@yahoo.com>wrote:
>
> In case this wiil help, I had a very similir problem when I was using
> Ubuntu 11.10.
>
> ------------------------------
> *From:* Jian Ma <jianmarf@gmail.com>
> *To:* pyqt@riverbankcomputing.com
> *Sent:* Tuesday, November 8, 2011 1:35 AM
> *Subject:* [PyQt] QFileDialog::getOpenFileName warning
>
> Hi,
>
> I wrote a program which uses QFileDialog to open file. The code is:
>
> *dir = "."
> fname = str(QFileDialog.getOpenFileName(self, "Gui - Choose File", dir))*
>
> When I run the program, there is warning message:
>
> *KGlobale::Locale::Warning your global KLocal is being recreated with a
> valid main component instead of a fake component, this usually means you
> tried to call i18n related functions before your main component was
> created. You should not do that since it most likely will not work.*
>
> I don't know why this warning happens. Any suggestions welcome.
>
> Thanks!
>
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
>
>
>
>
>
>
>

[Attachment #5 (text/html)]

Hi Tayfun,<br><br>Did you receive the reply from Rafael. I tried his suggestion. It \
works! I forgot to cc the reply to <a \
href="mailto:pyqt@riverbankcomputing.com">pyqt@riverbankcomputing.com</a>. In case \
you didn&#39;t receive the reply, you can set the QFileDialog option to \
DontUseNativeDialog. If you have any questions, please let me know.<br> \
<br>Jian<br><br><div class="gmail_quote">On Tue, Nov 8, 2011 at 2:51 PM, Tayfun \
Kayhan <span dir="ltr">&lt;<a \
href="mailto:tayfun92_kayhan@yahoo.com">tayfun92_kayhan@yahoo.com</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex;"> <div><div \
style="color:#000;background-color:#fff;font-family:tahoma, new york, times, \
serif;font-size:10pt"><div>I thought that replying mails, that are targeted for whole \
mail list, (added CC) are automatically sent to mail list, instead of the only owner \
of the mail,it seems like not yahoo is as smart as I am :D Thank you.</div> \
<div><br></div><div style="font-size:10pt;font-family:tahoma, &#39;new york&#39;, \
times, serif"><div style="font-size:12pt;font-family:&#39;times new roman&#39;, \
&#39;new york&#39;, times, serif"><font face="Arial" size="2"><div class="im"> <hr \
size="1"><b><span style="font-weight:bold">From:</span></b> Jian Ma &lt;<a \
href="mailto:jianmarf@gmail.com" \
target="_blank">jianmarf@gmail.com</a>&gt;<br><b><span \
style="font-weight:bold">To:</span></b> Tayfun Kayhan &lt;<a \
href="mailto:tayfun92_kayhan@yahoo.com" \
target="_blank">tayfun92_kayhan@yahoo.com</a>&gt;<br> </div><b><span \
style="font-weight:bold">Sent:</span></b> Tuesday, November 8, 2011 6:28 \
PM<div><div></div><div class="h5"><br><b><span \
style="font-weight:bold">Subject:</span></b> Re: [PyQt] QFileDialog::getOpenFileName  \
warning<br></div></div></font><div><div></div><div class="h5"><br><div>Hi \
Tayfun,<br><br>Thank you for your reply. <br><br>I guess you need to send(or CC) to \
<a rel="nofollow" href="mailto:pyqt@riverbankcomputing.com" \
target="_blank">pyqt@riverbankcomputing.com</a> instead of direct reply to me. You \
can try it and let me know if it works.<br>

<br><br><br><div>On Tue, Nov 8, 2011 at 10:35 AM, Tayfun Kayhan <span \
dir="ltr">&lt;<a rel="nofollow" href="mailto:tayfun92_kayhan@yahoo.com" \
target="_blank">tayfun92_kayhan@yahoo.com</a>&gt;</span> wrote:<br><blockquote \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="color:rgb(0, 0, 0);background-color:rgb(255, 255, \
255);font-size:10pt;font-family:tahoma, &#39;new york&#39;, times, serif"><div>Hi, \
yes and I just noticed that it is the same with openSUSE 11.4 that I&#39;m using now. \
It then must about Py/Qt, i guess. </div>

<div><br></div><div>Btw, May I learn if my reply has only come to you rather than to \
the mail list ? Because I cannot get mails when I send to some mail lists. \
</div><div><br></div><div>Thanks.</div><div><br></div><div \
style="font-size:10pt;font-family:tahoma,">

<div style="font-size:12pt"><font face="Arial" size="2"><div><hr size="1"><b><span \
style="font-weight:bold">From:</span></b> Jian Ma &lt;<a rel="nofollow" \
href="mailto:jianmarf@gmail.com" target="_blank">jianmarf@gmail.com</a>&gt;<br>

</div><b><span style="font-weight:bold">To:</span></b> Tayfun Kayhan &lt;<a \
rel="nofollow" href="mailto:tayfun92_kayhan@yahoo.com" \
target="_blank">tayfun92_kayhan@yahoo.com</a>&gt;<br><b><span \
style="font-weight:bold">Sent:</span></b> Tuesday, November 8, 2011 5:19  \
PM<br><b><span style="font-weight:bold">Subject:</span></b> Re: [PyQt] \
QFileDialog::getOpenFileName warning<br></font><div><div><br><div>Hi \
Tayfun,<br><br>Thank you for the reply.<br><br>I use SUSE. Do you mean that this \
problem may relate to the platform? Did this problem reappear when you use other \
OS?<br>

<br>Jian<br><br><div>On Mon, Nov 7, 2011 at 7:02 PM, Tayfun Kayhan <span \
dir="ltr">&lt;<a rel="nofollow" href="mailto:tayfun92_kayhan@yahoo.com" \
target="_blank">tayfun92_kayhan@yahoo.com</a>&gt;</span> wrote:<br> <blockquote \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div \
style="color:rgb(0, 0, 0);background-color:rgb(255, 255, \
255);font-size:10pt;font-family:tahoma,"> <div><span>In case this wiil help, I had a \
very similir problem when I was using Ubuntu 11.10.</span></div> <div><br></div><div \
style="font-size:10pt;font-family:tahoma,"><div style="font-size:12pt"><font \
face="Arial" size="2"><hr size="1"> <b><span \
style="font-weight:bold">From:</span></b> Jian Ma &lt;<a rel="nofollow" \
href="mailto:jianmarf@gmail.com" \
target="_blank">jianmarf@gmail.com</a>&gt;<br><b><span \
style="font-weight:bold">To:</span></b> <a rel="nofollow" \
href="mailto:pyqt@riverbankcomputing.com" \
target="_blank">pyqt@riverbankcomputing.com</a><br>


<b><span style="font-weight:bold">Sent:</span></b> Tuesday, November 8, 2011 1:35 \
AM<br><b><span style="font-weight:bold">Subject:</span></b> [PyQt] \
QFileDialog::getOpenFileName warning<br></font><div><div> <br>
<div>Hi,<br><br>I wrote a program which uses QFileDialog to open file. The code \
is:<br><br><i>dir = &quot;.&quot;<br>fname = str(QFileDialog.getOpenFileName(self, \
&quot;Gui - Choose File&quot;, dir))</i><br><br>When I run the program, there is \
warning message:<br>



<br><b>KGlobale::Locale::Warning your global KLocal is being recreated with a valid \
main component instead of a fake component, this usually means you tried to call i18n \
related functions before your main component was created. You should not do that \
since it most likely will not work.</b><br>



<br>I don&#39;t know why this warning happens. Any suggestions \
welcome.<br><br>Thanks!<br> \
</div><br></div></div>_______________________________________________<br>PyQt mailing \
list    <a rel="nofollow" href="mailto:PyQt@riverbankcomputing.com" \
target="_blank">PyQt@riverbankcomputing.com</a><br><a rel="nofollow" \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>


<br></div></div></div></div></blockquote></div><br>
</div><br><br></div></div></div></div></div></div></blockquote></div><br>
</div><br><br></div></div></div></div></div></div></blockquote></div><br>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic