Dear list,
I have been trying to compile wxPython Phoenix
(https://github.com/wxWidgets/Phoenix) from source on Windows 10 64 bit, Python
2.7 64 bit, using the very handy Microsoft Visual C++ Compiler for Python 2.7
(https://www.microsoft.com/en-us/download/details.aspx?id=44266).
I starte
Hi,
On Friday, 29 April 2016, Igor Korot wrote:
> Andrea,
>
> On Fri, Apr 29, 2016 at 3:45 PM, >
> wrote:
> > Dear list,
> >
> > I have been trying to compile wxPython Phoenix (
> https://github.com/wxWidgets/Phoenix) from source on Windows 10 64 bit,
> Python 2.7 64 bit, using the very han
Hi,
On Friday, 29 April 2016, Igor Korot wrote:
> Andrea,
>
> On Fri, Apr 29, 2016 at 4:27 PM, Andrea Gavana > wrote:
> > Hi,
> >
> >
> > On Friday, 29 April 2016, Igor Korot >
> wrote:
> >>
> >> Andrea,
> >&
Hello NG,
First of all, sorry if this is not the right
newsgroup.
I have a small image that looks like a GUI button
(with 3D effects given by different pixels colours). The current image has as
"basic" colour the grey. For "basic", I mean that the predominant colour in the
image is grey
I have tried your solution, Terry:
> new_hue # your 'basic color', just the hue part
> rgb_base # color from the basic button image
> rgb_new # the new color you want to replace rgb_base with
>
> rgb_new = hsv_to_rgb( (new_hue,) + rgb_to_hsv(rgb_base)[1:])
thanks a lot for your suggestion!
Hello Terry,
> new_hue # your 'basic color',
just the hue part> rgb_base # color from the basic button
image> rgb_new # the new color you want to replace rgb_base
with> > rgb_new = hsv_to_rgb( (new_hue,) +
rgb_to_hsv(rgb_base)[1:])
thanks a lot for your
suggestion! However, eithe
Hello Kay,
> Core Windows/Contols folder, replace there wx.LB_DEFAULT by wx.LB_RIGHT
> and resize the main window the listbox on the right side moves into the
> area of colored panel. This is a surprise to say the least. Has anyone
> of the GUI specialists an idea how to fix this?
Yeah, that's a
Hello Martin,
> My script runs fine with python, but the .exe produced with py2exe
> crashes out with:
>
> Traceback (most recent call last):
> File "App1.py", line 4, in ?
> File "wx\__init__.pyc", line 42, in ?
> File "wx\_core.pyc", line 3163, in ?
> AttributeError: 'module' object has no
Hello Kees,
> and via the even handler I try to give StaticText a different style:
In general you *can not* change in runtime the style of a widget. Only a
very limited subset of the wxPython widgets supports style changes in
runtime. I would suggest you 2 alternatives:
1) Use wx.lib.stattext ==
Hello Kees,
> Thanks :), I'll give both of your hints a try. What I basically want to
> do is have something like an "old style" button in win xp that's either
> "up" or "down", since I couldn't find a more straightforward method I
> thought taking a text widget and adjusting the border at mouse c
Hello Clans,
as a first suggestion, it is usually recommended that you post a small
*working* sample, in order to help others in understanding the problem and
also to give others the possibility to test your code. Noting that I am not
able to run your code as it is, I can just speculate one su
Hello NG,
this may seem a stupid (or even impossible) question, but my knowlegde
of Python is quite limited. I have basically a simple graphical user
interface that contains a Panel, another panel (child of the main panel) and
a custom widget (child of the main panel). Basically is something l
Hello NG,
> I've managed to avoid reading Xah Lee's diatribes for the most
> part. Since you included the *WHOLE THING* in your post, I had an
> "opportunity" to see what he had to say, and for once I agree with
> some of it.
> I would love to see examples for essentially every function and
> m
Hello Philippe,
> Is wxWidget now part of python ? or will it be ?
No, I don't think it will ever be part of Python. But, wxWidgets is written
in C++, so it has nothing *pythonic* in it. There is, however, a "Python
Binding" of wxWidgets, called (obviously ;-) ) wxPython. If you can install
a sit
Hello Len
> I would like to put an Icon on the frame but cannot figure out how to
> do it any help.
What about:
wx.MDIParentFrame.SetIcon(self, icon)
?
I usually take a look also to the wxPython API docs at:
http://www.wxpython.org/docs/api/
Or I use some google-fu to find answers, both for
> No, and *I hope* that if another toolkit has to replace Tkinter (will
never
> happen?) will be PyGTK... :)
This will only mean that people that now prefer wxPython over Tkinter will
in future prefer wxPython over PyGTK ;-)
Andrea.
--
"Imagination Is The Only Weapon In The War Against Reality.
Hello Len,
> Hate to ask this dum question (since I've been hiding under a rock).
> But if the MDI UI model is/was depreciated. What is the new UI model.
This much depends on which kind of application you have in mind. In my
organization a lot of software that we use (basically for reservoir
geo
Hello John & Sarah,
> (This assumes the wxPython Licence is compatible with the GPL -- if not,
> do we just cosmetically change any remaining lines, so none remain from
> the orignal?)
IIRC, wxPython license has nothing to do with GPL. Its license is far more
"free" than GPL is. If you want to cr
Hello NG,
I have a wxPython application that does a lot of things. One of them,
in particular, I have doubts on how to implement it. Essentially, this part
of my application calls an external executable (an oil reservoir
simulator). What I would like to do, is to give the user the possibilit
Hello NG,
probably this is a basic question, but I'm going crazy... I am unable
to find an answer. Suppose that I have a file (that I called "Errors.txt")
which contains these lines:
MULTIPLY
'PERMX' @PERMX1 1 34 1 20 1 6 /
'PERMX' @PERMX2 1 34 21 41 1 6 /
'PERMX' @P
Hello Peter And NG,
thank you a lot... now I'm blaming myself, how couldn't I see it? I
will probably go for the re.sub (if it is not too complicated, I'm not a
Python expert and even less expert of RegEx things), if not I'll try your
suggestion of sorting the strings by length.
Thanks a lo
Hello NG,
I am quite new with Python... I'm writing an application that does
also some regexp things on strings, but I'm having problem about
identifying/extracting a substring from another string. What I have to do
is to extract all the strings that begins with a "$" character, but
excluding
Hello NG,
I'm quite new to Python and I don't know if this is a FAQ (I can't
find it) or an obvious question. I'm using the RE module in python, and I
would like to be able to contruct something like the Window$ "Find Files Or
Folders" engine. As the Window$ users know, you can filter the fi
Hello NG,
I was wondering if there is a faster/nicer method (than a for loop)
that will allow me to find the elements (AND their indices) in a list that
verify a certain condition. For example, assuming that I have a list like:
mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1, 10]
I would like to fi
Hello NG,
I have searched everyweher, and I am not able to find a solution...
basically, I am constructing a GUI with wxPython, in which I have a list.
In this list control, I have some file. I would like to associate (to every
file) its icon (on Windows). I have searched about the use of Ma
Hello NG,
in my application, I use os.walk() to walk on a BIG directory. I need
to retrieve the files, in each sub-directory, that are owned by a
particular user. Noting that I am on Windows (2000 or XP), this is what I
do:
for root, dirs, files in os.walk(MyBIGDirectory):
a = os.popen
Hello Lazslo & NG,
>You can use the stat module to get attributes like last modification
>date, uid, gid etc. The documentation of the stat module has a nice
>example. Probably it will be faster because you are running an external
>program (well, "dir" may be resident but still the OS needs to cr
Hello NG,
yesterday I installed Python 2.4.1 (together with all the
site-packages I need for it, including Pythonwin, wxPython, py2exe,
etc...), but then I found that for some of my py2exe generated application
there were some problems. So, I came back and I re-installed Python 2.3.4
as befo
Hello NG,
I don't know if this is the right place to post this question, but
noting that it is os-related probably someone will have some nice idea.
I have built an application using Python+wxPython, and I have compiled it
into an exe file using py2exe. In my app, I use a call:
self.process
Hello NG,
I am using the webbrowser module (on Windows 2000/XP), and I am
wondering if anyone knows how to use the input arguments "new". On Windows,
it seems to be ignored. By looking at the commands it does on Windows:
class WindowsDefault:
def open(self, url, new=0, autoraise=1):
Hello List,
I am working with relatively humongous binary files (created via cPickle),
and I stumbled across some unexpected (for me) performance differences between
two approaches I use to load those files:
1. Simply use cPickle.load(fid)
2. Read the file as binary using file.read() and
Hi Peter,
On Tuesday, November 17, 2015 at 3:14:57 PM UTC+1, Peter Otten wrote:
> Andrea Gavana wrote:
>
> > Hello List,
> >
> > I am working with relatively humongous binary files (created via
> > cPickle), and I stumbled across some u
Hi Chris,
On Tuesday, November 17, 2015 at 4:20:34 PM UTC+1, Chris Angelico wrote:
> On Wed, Nov 18, 2015 at 1:20 AM, Andrea Gavana wrote:
> > Thank you for your answer. I do get similar timings when I swap the two
> > functions, and specifically still 15 seconds to re
Hi Peter,
On Tuesday, November 17, 2015 at 4:57:57 PM UTC+1, Peter Otten wrote:
> Andrea Gavana wrote:
>
> > Hi Chris,
> >
> > On Tuesday, November 17, 2015 at 4:20:34 PM UTC+1, Chris Angelico wrote:
> >> On Wed, Nov 18, 2015 at 1:20 AM, Andrea Gavana wrote:
&g
Hi,
On Wednesday, November 18, 2015 at 10:00:43 AM UTC+1, Nagy László Zsolt wrote:
> > Perhaps there is a size threshold? You could experiment with different
> > block
> > sizes in the following f.read() replacement:
> >
> > def read_chunked(f, size=2**20):
> > read = functools.partial(f.rea
Hi All,
my apologies if this is a dumb question, but I couldn't find a solution
- possibly because I am not sure how to state my problem in a short
sentence.
Let's say I am using a package called "blah", and this package is already
installed on site-packages (and I need it to be there) with
> I am looking for a 2D data visualisation or graphics library for
> Python. Can anyone point me in the right direction?
You could try out matplotlib:
http://matplotlib.sourceforge.net/
HTH.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity
Hello NG,
I'm struggling and googling around, but without big success. I am
trying to build a fortran extension with F2PY, and it seems to me an
impossible task. At the moment, I have the following installed:
- Latest f2py
- MS Visual Studio 2003
- Python 2.4
- Intel Visual Fortan 9.1
I keep
Hello NG,
that may sound a silly question, but I didn't find anything really
clear about the issue of reading unformatted big endian files with
Python. What I was doing till now, was using Fortran to read those
files and compile this Fortran extension using F2PY. Now that it seems
that no poss
Hello John,
>Silently ignoring errors when reading a file doesn't sound like a good
>idea to me at all, especially if different records have different
>formats.
Yeah, you're right, but the file itself is quite big and I am
interested only in a small part of it. Moreover, the sequence
keyword-numb
Hello John,
> (1) Upgrade to 2.5 as soon as it goes final -- struct's performance has
> been improved.
I would love to, but I have some dependencies (like wxPython, Numeric,
py2exe and so on) for which a 2.5 stable release either doesn't exist
or is not fully tested or will break my app in some w
Hello NG,
I am using the latest Numpy release 1.0rc2 which includes F2PY. I
have switched to Python 2.5 so this is the only alternative I have
(IIUC). With Python 2.4, I was able to build a very simple fortran
extension without problems.
My extension contains 4 subroutines that scan a file an
Hi all,
I am having some troubles mixing py2exe and winxptheme. Basically,
I am using wxPython 2.7.2.0 with Python 2.5, and painting some window
background using the UxTheme via winxptheme. This is what I am doing:
hwnd = MyWindow.GetHandle()
self.hTheme = winxptheme.OpenThemeData(hwnd, "Windo
Hi Stefan,
> You probably need to include the common Control Manifest to supprt
> themes
> see in the py2exe\samples\advanced directory for an example how to do
> it.
>
I am already doing it. In my Setup.py there is a manifest file
embedded in a Python string. Plus, I *also* have a file called
My
Hello NG,
sorry if the message is not strictly Python-related, but it is
fantastically impossible to send post to Image-SIG.
I am using PIL to load and display some pictures (via wxPython) in a
GUI. I have added the ability for the user to change the linear
dimensions of the image (in pixels)
Hi All,
I am having some problems in running a very simple python script,
which prints some numbers in an Excel spreadsheet. The numbers are
stored in a list. I know that the numbers are different (random
generated), but when I open the Excel file I get a column of data with
all the numbers eq
Hi Michael,
> First of all you should call the random.seed()
> function. That was at least what I´ve always done.
> seed([x])
Thanks for your suggestion, but it doesn't matter whether you call
seed() or not. The random number generator can *not* return 10 equal
values if called 10 times, irrespec
Hello NG,
it is probably a beginner question, but I didn't solve it without
for-loops, and I am unable to determine if there is a faster way (probably
using some built-in function) to do this task. I have to speed up a
wxPython code that uses a lot of string concatenation (and uses these
str
Hi All,
In summary, this PEP proposes to allow non-ASCII letters as
identifiers in Python.
In primis, I would like to congratulate with Martin to have started
one of the most active threads (flame wars? :- D ) in the python-list
history. By scanning the list from January 2000 to now, this is t
Hi All,
in our office we work with quite complex input files for a
reservoir simulator. Those files have thousands of keywords, switches,
sub-keywords and whatever. Every time a modification is requested, we
modify the input file and re-run the simulator. Obviously, the
possible modifications
> Andrea Gavana wrote:
> > Hi All,
> >
> > in our office we work with quite complex input files for a
> > reservoir simulator. Those files have thousands of keywords, switches,
> > sub-keywords and whatever. Every time a modification is requested, we
> &g
Hi All,
I have a very simple python script that tries to put a rectangular
shape in a worksheet and then add some text inside that shape. The
main problem, is that as usual Excel doesn't like input strings longer
than 200 and something characters. So, by just recording a macro in
Excel, I tried
Hi Diez & All,
> And on a personal note: I find it *buttugly*.
Do you mind explaining "why" you find it *buttugly*? I am asking just
out of curiosity, obviously. I am so biased towards wxPython that I
won't make any comment on this thread in particular, but I am curious
to know why some people fi
Hi Ed & All,
On Thu, Jun 12, 2008 at 4:11 PM, Ed Leafe wrote:
> On Jun 12, 2008, at 10:55 AM, Andrea Gavana wrote:
>
>>> And on a personal note: I find it *buttugly*.
>>
>> Do you mind explaining "why" you find it *buttugly*? I am asking just
>> out
Hi All,
I am happy to announce a new release of GUI2Exe (0.4.0).
What is it?
=
GUI2Exe is my first attempt to unify all the available "executable
builders" for Python in a single and simple to use graphical user
interface. At the moment the supported executable builders are:
-
Hi All,
I am happy to announce a new release of GUI2Exe (0.5.0).
What is it?
=
GUI2Exe is my first attempt to unify all the available "executable
builders" for Python in a single and simple to use graphical user
interface. At the moment the supported executable builders are:
-
Hi All,
I apologize in advance if I'm going to write very stupid things,
my expertise in http/socket/imap stuff is very close to zero. I'm
using Python 2.6.5 on Windows XP SP3.
I am trying to access my GMail account from my office, and it appears
our company's firewall is blocking all SMTP/PO
turn self.do_open(conn_factory, req)
File "C:\Python26\lib\site-packages\gmail_transport.py", line 143, in do_open
return ClientCookie.HTTPSHandler.do_open(self,
ProxyHTTPSConnection.new_auth(self.proxy, self.proxy_user,
self.proxy_passwd), req)
File "C:\Python26\lib\site-pac
Hi Malcolm,
On 17 February 2011 11:44, Malcolm Greene wrote:
> Andrea,
>
> What type of result do you get trying port 993 ?
Thank you for your answer. I have tried that, with imaplib and
libgmail. This is what I get with imaplib:
Traceback (most recent call last):
File "D:\MyProjects\gmail
Hi Malcolm,
On 17 February 2011 19:20, wrote:
> Hi Andrea,
>
> Have you tried temporarily turning off your Windows firewall software
> and/or any locally installed internet security software like Norton,
> Avast, etc? You don't need to turn off your entire security package,
> just the component
60 matches
Mail list logo