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

List:       pykde
Subject:    Re: [PyQt] Locating .ui files at runtime
From:       Stephen Chapman <schapman1974 () gmail ! com>
Date:       2015-05-11 23:45:05
Message-ID: CAGLrwVYnZ6GE4x4sfAPvBWGG__sT5d8yp0hzYoSOnh12wySKUg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I am storing mine as a resource the feeding in a file like object from the
resource
On May 11, 2015 7:22 PM, "Jared Henley" <jared.henley@gmail.com> wrote:

> Hi,
>
> I'm developing a program using PyQt.  I load the .ui files at runtime
> using uic.loadUi() for various reasons, mainly because the python
> source is cleaner.
>
> I'm trying to work out how to find the correct path to the .ui files,
> particularly when the program is installed and they could be in any
> number of places depending the path prefix of where the program gets
> installed to.
>
> If it's any help, I'm developing primarily for Linux and other unixes,
> other platforms are not high on the priority list.
>
> How are people going about this?
>
> Jared
> _______________________________________________
> PyQt mailing list    PyQt@riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[Attachment #5 (text/html)]

<p dir="ltr">I am storing mine as a resource the feeding in a file like object from \
the resource</p> <div class="gmail_quote">On May 11, 2015 7:22 PM, &quot;Jared \
Henley&quot; &lt;<a href="mailto:jared.henley@gmail.com">jared.henley@gmail.com</a>&gt; \
wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br> <br>
I&#39;m developing a program using PyQt.   I load the .ui files at runtime<br>
using uic.loadUi() for various reasons, mainly because the python<br>
source is cleaner.<br>
<br>
I&#39;m trying to work out how to find the correct path to the .ui files,<br>
particularly when the program is installed and they could be in any<br>
number of places depending the path prefix of where the program gets<br>
installed to.<br>
<br>
If it&#39;s any help, I&#39;m developing primarily for Linux and other unixes,<br>
other platforms are not high on the priority list.<br>
<br>
How are people going about this?<br>
<br>
Jared<br>
_______________________________________________<br>
PyQt mailing list      <a \
href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br> <a \
href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" \
target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a></blockquote></div>



[Attachment #6 (text/plain)]

_______________________________________________
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