Re: PIL(Pillow) fails with PNG image

2013-12-05 Thread Christian Gollwitzer
lf.correctGuessImage= ImageTk.PhotoImage(image) I don't know what is the problem here, but Tk supports PNG natively from 8.5 onwards; just use self.correctGuessImage= ImageTk.PhotoImage(file='bulb.png') Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] problem trying out simple non object oriented use of Tkinter

2013-12-06 Thread Christian Gollwitzer
Am 06.12.13 14:12, schrieb Jean Dubois: It works but it's not all clear to me. Can you tell me what "label.bind("<1>", quit)" is standing for? What's the <1> meaning? "bind" connects events sent to the label with a handler. The <1> is the event description; in this case, it means a click with

Re: [newbie] struggling wth tkinter

2013-12-08 Thread Christian Gollwitzer
/usr/bin/env python from tkinter import * from tkinter import ttk With my python2, it works to replace the import by from Tkinter import * import ttk Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] trying socket as a replacement for nc

2013-12-12 Thread Christian Gollwitzer
o do it properly? The most proper way is to use asynchronous IO; never done this in python before, check this: http://docs.python.org/2/library/asyncore.html#asyncore-example-basic-http-client Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-16 Thread Christian Gollwitzer
is with pyinstaller. You can get a rather full-fledged interpreter with GUI support into a few megabytes, and I've never seen it fail. Happy flaming, Christian [1] http://wiki.tcl.tk/12574 [2] http://wiki.tcl.tk/3963 -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-16 Thread Christian Gollwitzer
tinct from dicts and provide no value semantics, i.e. you cannot pass them around. Today these issues are overcome by using dicts or some OO framework. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-17 Thread Christian Gollwitzer
interp alias {} tk_getOpenFile {} ttk::getOpenFile interp alias {} tk_getSaveFile {} ttk::getSaveFile interp alias {} tk_chooseDirectory {} ttk::chooseDirectory } Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-17 Thread Christian Gollwitzer
Am 16.12.13 23:40, schrieb Chris Angelico: On Tue, Dec 17, 2013 at 9:06 AM, Christian Gollwitzer wrote: Let the flame war begin! I'll try to avoid flamage :) :) So let's vigorously discuss about facts;) But my rule of thumb with bash scripts is: If it exceeds a page or two

Re: how to develop code using a mix of an existing python-program and console-commands

2013-12-18 Thread Christian Gollwitzer
, and then either %run myfile.py or execfile('myfile.py') You can do this multiple times, where the new definitions overwrite the old ones. In any case, ipython is much more friendly to use at the command prompt than plain python. Christian -- https://mail.python.org/mailma

Re: Why Python is like C++

2013-12-21 Thread Christian Gollwitzer
ch an old-school BASIC with line numbers, GOSUBS and all that. GW-BASIC was a weak language, but two significant characters is definitely too few. I think it was eight. Never used QuickBasic, I went Turbo Pascal instead, which had 32 significant characters. Christian --

Re: Error while building Python doc

2013-12-22 Thread Christian Heimes
ml" is like "cd Doc; make html; cd .." Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Using asyncio in event-driven network library

2013-12-25 Thread Christian Gollwitzer
oc() to do it, but I'm not sure whether this leads to race conditions. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: On radio buttons in tkinter

2014-01-04 Thread Christian Gollwitzer
works/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 255, in get value = self._tk.globalgetvar(self._name) _tkinter.TclError: can't read "PY_VAR0": no such variable >>> IMHO the last call should translate an unset variable to None to by useful for three-state widgets. You can still do it manually by invoking the widget's state() method Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter GUI Error

2014-01-13 Thread Christian Gollwitzer
window, where you make this labelent1 an instance variable (put into self). Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter GUI Error

2014-01-14 Thread Christian Gollwitzer
oying behaviour. See for example this SO question http://stackoverflow.com/questions/4140437/python-tkinter-interactively-validating-entry-widget-content Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Using a static library in a C extension for Python

2014-01-22 Thread Christian Gollwitzer
#x27;s stubs, where an array of function pointers gets passed to the extension. This system allows to load an extension into later versions of the host program. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: No overflow in variables?

2014-01-23 Thread Christian Heimes
On 22.01.2014 19:26, Chris Angelico wrote: > Internally, I believe CPython uses the GNU Multiprecision Library > (GMP), which gives an efficient representation and operation format, > scaling to infinity or thereabouts. You can go to any size of integer > you like without there being any difference

Re: pytz question: GMT vs. UTC

2014-01-30 Thread Christian Heimes
On 30.01.2014 04:27, Chris Angelico wrote: > On Thu, Jan 30, 2014 at 1:40 PM, MRAB wrote: >>> How cruel... I suspect the smack at 0degC is much more painful >>> than one >>> at room temperature >>> >> It's the 21st century; you should be making use of Unicode: 0°C. > > I started to read

Re: Tkinter widgets into classes.

2014-02-02 Thread Christian Gollwitzer
awidgets will of course also group functionality (i.e. reactions to button clicks etc.) in the same megawidget class Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter widgets into classes.

2014-02-02 Thread Christian Gollwitzer
mn=0) root.mainloop() I don't know how this works, but it is definitely wrong. If you need more than one window, use Toplevel() to create it. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Problems compiling Python 3.4 on Ubuntu

2014-02-03 Thread Christian Heimes
On 03.02.2014 16:14, Ram Rachum wrote: > Worked! Thanks Ervin! $ sudo apt-get build-dep python3.3 will install everything you need to compile Python 3.4 on Debian and Ubuntu. Good luck! :) Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: askopenfilename()

2015-11-28 Thread Christian Gollwitzer
log and the listbox, nice icons for the buttons, trapping the close button on the main window with an "are you sure?"-type question, maybe wrapping it up in a class, a progress bar during the upload and a way to interrupt it... which is left as an exercise

Re: askopenfilename()

2015-11-28 Thread Christian Gollwitzer
Am 28.11.15 um 13:48 schrieb Ulli Horlacher: Christian Gollwitzer wrote: Many problems would simply go away if you wrote the whole thing as a GUI program. Too much hassle. The predecessor was a Perl/Tk program and I have had to invest 90% of the programming work into the GUI handling. No fun

Re: msvcr100.dll missing ... error started after Windows 10 update to 10586.17

2015-12-05 Thread Christian Gollwitzer
Am 05.12.15 um 00:26 schrieb Glenn Linderman: My wife's 64-bit Win8 home machine has 32-bit Python 3.3 installed. Then it upgraded to Win 8.1. Then I upgraded it to Win 10. Then I upgraded it to Threshold 2. It gets regular automatic updates also, like the one last night to build 10586.17. That

Re: Getting data out of Mozilla Thunderbird with Python?

2015-12-09 Thread Christian Gollwitzer
rc to create HTML archives of mbox email files for viewing in a browser Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: non-blocking getkey?

2015-12-10 Thread Christian Gollwitzer
uch a get_paste() function? I need a non-blocking getkey() function. It must work on Windows and Linux. Raw tty input. You'll have to write two different versions for Windows and Linux. Sorry I can't help with that one. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: non-blocking getkey?

2015-12-10 Thread Christian Gollwitzer
e manager each time. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How does one distribute Tkinter or Qt GUI apps Developed in Python

2015-12-16 Thread Christian Gollwitzer
ith ~60 MB) Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tk alternative to askopenfilename and askdirectory?

2015-12-18 Thread Christian Gollwitzer
e Tcl extensions use a mechanism called stubs, which ensures broad binary compatibility. The only drawback: you will not have a single .py file, but since on Windows you deliver using pyinstaller, that should not be an issue. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Catogorising strings into random versus non-random

2015-12-21 Thread Christian Gollwitzer
Am 21.12.15 um 09:24 schrieb Peter Otten: Steven D'Aprano wrote: I have a large number of strings (originally file names) which tend to fall into two groups. Some are human-meaningful, but not necessarily dictionary words e.g.: baby lions at play saturday_morning12 Fukushima ImpossibleFork

Re: Catogorising strings into random versus non-random

2015-12-21 Thread Christian Gollwitzer
Am 21.12.15 um 11:36 schrieb Steven D'Aprano: On Mon, 21 Dec 2015 08:56 pm, Christian Gollwitzer wrote: Apfelkiste:Tests chris$ python score_my.py -8.74 baby lions at play -7.63 saturday_morning12 -6.38 Fukushima -5.72 ImpossibleFork -10.6 xy39mGWbosjY -12.9 9sjz7s8198ghwt -12.1 rz

Re: Catogorising strings into random versus non-random

2015-12-21 Thread Christian Gollwitzer
Am 21.12.15 um 11:53 schrieb Christian Gollwitzer: So for the spaces, either use a proper trainig material (some long corpus from Wikipedia or such), with punctuation removed. Then it will catch the correct probabilities at word boundaries. Or preprocess by removing the spaces. Christian

Re: GitHub's ³pull request² is proprietary lock-in

2016-01-02 Thread Christian Gollwitzer
doned, people will know that Python lives on GitHub and live with it, move on and do something more valuable. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: GitHub's ³pull request² is proprietary lock-in

2016-01-03 Thread Christian Gollwitzer
Am 03.01.16 um 09:03 schrieb Ben Finney: Christian Gollwitzer writes: Arguably, the most valuable outcome of the pull request in the end is the patch, which is of course contained in the git repository. Arguably, the most valuable outcome of a database system is the query result, which is

Re: GitHub's ³pull request² is proprietary lock-in

2016-01-03 Thread Christian Gollwitzer
for you publish them, which is done by a git commit/push to the gh-pages branch. What other features? And doesn't that come back around to getting locked into the walled garden? For the pages definitely not. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: raise None

2016-01-03 Thread Christian Gollwitzer
meError, code=error, level=1) "raise SomeError" would be identical to "return(SomeError, code=error, level=0)". In general you can return codes for continue, break and return to have the upper level act as if continue, break or raise was executed at the point where the function was called. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: use Python and an outlook: protocol URL to bring up a specific email

2016-01-12 Thread Christian Gollwitzer
a built-in command of cmd.exe. And thus it has very quirky quotation rules. This is unlike Linux, where "xdg-open" is a shell script, and OSX, where "open" is a binary executable. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Using 'Or'

2016-01-16 Thread Christian Gollwitzer
m.choice(('donuts','apples')) 'donuts' >>> random.choice(('donuts','apples')) 'apples' >>> random.choice(('donuts','apples')) 'donuts' >>> Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter spacing

2016-01-26 Thread Christian Gollwitzer
is like sometkvar=Tk.StringVar() lbl_RCount = ttk.Entry(nav_bar, textvariable=sometkvar, width=10, state='readonly') sometkvar.set('0 ') nav_bar.grid(column=0, row=0, columnspan=13) There is no need to give the nav_bar a columnspan. So far you have no elements in the m

Re: Tkinter spacing

2016-01-26 Thread Christian Gollwitzer
ity. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Mimick tac with python.

2016-01-29 Thread Christian Gollwitzer
than that, but that makes for a more complex program. Now I'm curious. How is it possible to output the first line as last again if not by remembering it from the every beginning? How could tac be implemented other than sucking up everything into memory? Christian -- https://m

Re: Mimick tac with python.

2016-01-30 Thread Christian Gollwitzer
Am 30.01.16 um 08:56 schrieb Jussi Piitulainen: Christian Gollwitzer writes: Am 30.01.16 um 05:58 schrieb Random832: On Fri, Jan 29, 2016, at 23:46, Hongyi Zhao wrote: awk '{a[NR]=$0} END {while (NR) print a[NR--]}' input_file perl -e 'print reverse<>' input_file

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-06 Thread Christian Gollwitzer
ble. C above C++ can be an artifact. The metric uses search engines to ask for "C -c++ -java -python ..." - I'm not sure they can really distinguish between C and C++ this way. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: [newbie] problem with geometry setting in Tkinter

2016-02-08 Thread Christian Gollwitzer
place to set window sizes in pixels have been canvas widgets, which do not have a native size derived from the content. Setting the size on the toplevel, and in absolute numbers, i.e. not computed from other sizes, is likely to lead to problems on different platforms, font sizes or theme changes.

Re: [Glitch?] Python has just stopped working

2016-02-16 Thread Christian Gollwitzer
error: Py_initialize: unable to load the file system codec ImportError: No module named 'encodings' Can it be that you have just set a strange locale? What happens if you run it as LANG=C python ? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: [STORY-TIME] THE BDFL AND HIS PYTHON PETTING ZOO

2016-02-18 Thread Christian Gollwitzer
ts, only eager evaluation is really predictable. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How the heck does async/await work in Python 3.5

2016-02-19 Thread Christian Gollwitzer
ait-co-routines MS has added coroutine support with very similar syntax to VC++ recently, and the developer tries to explain it to the "stackful" programmers. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Christian Gollwitzer
x27;%f' is float. sscanf also handles fixed-width columns which you often get from Fortran programs. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-21 Thread Christian Gollwitzer
#x27;, 10, 6, 1) [8.65, 0.2192347, 0.000333, 44.0, 0.0051, 6.0] String Apfelkiste:Tests chris$ Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Christian Gollwitzer
font size, screen resolution, or a different OS. If you are not satisfied with the whitespace, use the padding options of grid or pack. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Christian Gollwitzer
) lblPWord = Label(root1, text= 'Height').grid(row=2,column=0) Also here, the labels look odd. Have you tried to do some alignment of the text with spaces? Remove the sapces and look at the "justify" option of the label widget and the "sticky" option for

Re: [Newbie] Tkinter Question

2016-02-23 Thread Christian Gollwitzer
w.com/questions/55/how-do-i-handle-the-window-close-event-in-tkinter Your program could still be killed by another way, e.g. from the task manager, which would leave the files behind. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Request More Help With XBM Image

2016-03-01 Thread Christian Gollwitzer
://code.activestate.com/recipes/521918-pil-and-tkinter-to-display-images/ (this might need some updating if you are using Python 3) Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-03-02 Thread Christian Gollwitzer
ct name instead of a positional argument. Christian Caveat emptor: never used it myself -- https://mail.python.org/mailman/listinfo/python-list

Re: Inception

2016-03-03 Thread Christian Gollwitzer
ng. If you run another interpreter in the second thread, it will have it's own GIL. I'm not familiar with the internals of other Python implementation, but I can imagine that maybe in Jython such an extension could be written. Christian -- https://mail.python.org/mailman/listinfo/python-list

Application console for Tkinter program?

2016-03-05 Thread Christian Gollwitzer
ll button twice, it locks up the program, because main() obviously starts it's own mainloop Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Application console for Tkinter program?

2016-03-05 Thread Christian Gollwitzer
Am 05.03.16 um 11:15 schrieb Terry Reedy: On 3/5/2016 2:52 AM, Christian Gollwitzer wrote: is there an easy way to add an application console to a Tkinter program? Right now, you should turn the question around. so this means no, right? Is there an easy way to run a tkinter program within

Re: Adding Icon To Tkinter Window - Followup

2016-03-05 Thread Christian Gollwitzer
ou need to read other image files, look into PIL and ImageTk. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding Icon To Tkinter Window - Followup

2016-03-06 Thread Christian Gollwitzer
Am 06.03.16 um 06:53 schrieb Wildman: On Sat, 05 Mar 2016 19:36:19 +0100, Christian Gollwitzer wrote: import Tkinter from Tkinter import Tk root = Tk() img = Tkinter.Image("photo", file="appicon.gif") root.call('wm','iconphoto',root._w,img) The abov

Re: Application console for Tkinter program?

2016-03-06 Thread Christian Gollwitzer
and print the result. When the user has entered code, how does the REPL know if it should be eval'ed or exec'ed? I assume that you don't try to parse the Python code manually to find this out? Or you try to eval(), and if it doesn't compile, you exec()? Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Christian Gollwitzer
,ord("1"),ord("2"),ord("3"),ord("4"),ord("5"), ord("6"),ord("7"),ord("8"),ord("9")): digits+=1 else: other+=1 It worked, but took 110 seconds; 80 seconds without the ord's and comparing strings (but I still think it's perverse that integer ops are slower than string ops). I assume you run this in a big loop. What about a single hash-table lookup? from collections import Counter counts=Counter() for c in whatever: counts[c]+=1 upper=sum(counts[x] for x in range(ord('A'), ord('Z')+1) lower=sum(counts[x] for x in range(ord('a'), ord('z')+1) I think this is equally readable as the switch version, and should be much faster. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-14 Thread Christian Gollwitzer
ray(5) twice(a); twice(b) print a print b This is actually one of the warts in Python. Yes there are some explanations with boxes and arrows and sticky notes and mutable and immutable values... but actually you understand it best if you know how CPython works and that a list is passed as a poi

Re: Encapsulation in Python

2016-03-15 Thread Christian Gollwitzer
ve code, but still claim that you get good performance. You will also profit (in the form of bug reports) if somebody actually tries your code. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Case Statements

2016-03-16 Thread Christian Gollwitzer
dent. Otherwise, if-elif chains are the way to go. Command line parsing is a case where switch statements are often used, e.g. in shell scripts. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Bash-like pipes in Python

2016-03-19 Thread Christian Gollwitzer
Pipe symbol '|' in python. Can you elaborate It's an overloaded "or" operator def __ror__(self, iterable): Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.1 and blitzdb issue

2014-10-22 Thread Juan Christian
new millennium.","birthday":"1944-05-14","deathday":"","homepage":"","id":1,"imdb_id":"nm184","name":"George Lucas","place_of_birth":"Modesto - California - USA&qu

Python 3.4.1 and blitzdb issue

2014-10-22 Thread Juan Christian
Testing code: CODE - #!/usr/bin/env import requests from blitzdb import Document, FileBackend API_URL = 'http://api.themoviedb.org/3' API_KEY = 'ddf30289' class Actor(Document): pass def get_actor(_id): r = requests.get('{}/person/{}?api_key={}'.format(A

Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-10-28 Thread Juan Christian
Python 3.4.2 Windows x64 PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) PyCharm 3.4.1 Pro Edition So, PyCharm works 100% with everything here but PyQt. I have this folder structure: Disk C: > PyQt4 >> Lib/site-packages/PyQt4/(tons of files here) > Python34 (normal/default installation) --- I tried copying

Re: What does %%(%s)s mean/expand to in Python? What does rowshtml += (rowhtml % ((fieldname, ) * 3)) expand to? Kindly explain.

2014-10-29 Thread Christian Gollwitzer
= (rowhtml % ((fieldname,) * 3)) expand to? >>> fieldname='foo' >>> (fieldname,)*3 ('foo', 'foo', 'foo') >>> test='first %s second %s third %s' >>> test % ((fieldname,)*3) 'first foo second foo third foo' >>> Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-10-29 Thread Juan Christian
It only occurs whule using PyCharm I tried it via pure terminal and everything works... =/ On Tue, Oct 28, 2014 at 7:45 PM, Juan Christian wrote: > Python 3.4.2 Windows x64 > PyQt4 4.11.2 Py3.4 Qt4.8.6 (x64) > PyCharm 3.4.1 Pro Edition > > > So, PyCharm works 100% with everyt

Re: Has color "Green" changed from Python 33 to 34 ?

2014-10-31 Thread Christian Gollwitzer
een'. If you are dependent on the exact RGB value, just use a hex triplet, this will be passed unmodified to the OS and never change. A 100% green would be '#00FF00'. Note that still the OS may choose to apply color profiles etc. to this color, but this is outside of the control

Re: Challenge: optimizing isqrt

2014-11-01 Thread Christian Gollwitzer
s, 2) x = 2**(a+b) else: x=int(math.sqrt(n)) y=n//x if x= x: return x x = y Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: Challenge: optimizing isqrt

2014-11-01 Thread Christian Gollwitzer
Addendum: If my method below works, you can also use it to speed up computations for n>2*1022, by splitting off an even power of two from the integer and computing the FP sqrt of the mantissa for the seed, i.e. doing the FP manually. Am 01.11.14 09:02, schrieb Christian Gollwitzer: Hi Ste

Re: Challenge: optimizing isqrt

2014-11-01 Thread Christian Gollwitzer
Am 01.11.14 09:13, schrieb Chris Angelico: On Sat, Nov 1, 2014 at 7:02 PM, Christian Gollwitzer wrote: Your above algorithm is obviously doing Heron- or Newton-Raphson iterations, so the same as with floating point math. The first line before the while loop computes some approximation to sqrt

Re: Challenge: optimizing isqrt

2014-11-01 Thread Christian Gollwitzer
Am 01.11.14 09:33, schrieb Chris Angelico: On Sat, Nov 1, 2014 at 7:25 PM, Christian Gollwitzer wrote: Part of the point of that algorithm is that it never uses FP, and is therefore not limited by FP restrictions. which are??? Most notably, the inability to represent every integer beyond

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-11-01 Thread Juan Christian
No one here uses PyCharm and Qt? =/ On Wed, Oct 29, 2014 at 8:45 PM, Juan Christian wrote: > It only occurs whule using PyCharm I tried it via pure terminal and > everything works... =/ > > On Tue, Oct 28, 2014 at 7:45 PM, Juan Christian > wrote: > >> Python 3.4.2 Win

Re: Python 3.4.2 + PyQt4 + PyCharm 3.4.1

2014-11-06 Thread Juan Christian
ov 6, 2014 at 12:50 farshad akbari wrote: > On Saturday, November 1, 2014 3:11:54 PM UTC+3:30, Juan Christian wrote: > > No one here uses PyCharm and Qt? =/ > > > > > > On Wed, Oct 29, 2014 at 8:45 PM, Juan Christian > wrote: > > > > It only occurs whule u

PySide 1.2.2 setMaxWidth and AeroSnap

2014-11-16 Thread Juan Christian
PySide 1.2.2 Python 3.4.2 Code: from PySide.QtGui import * class MainWindow(QWidget): def __init__(self): QWidget.__init__(self) self.setMinimumSize(600, 700) self.setMaximumWidth(600) self.setLayout(QVBoxLayout()) * Call to this module in another module * app = QApplication(sys.argv) window =

Re: PySide 1.2.2 setMaxWidth and AeroSnap

2014-11-16 Thread Juan Christian
On Sun Nov 16 2014 at 3:46:40 PM Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote: > > No probleme with PyQt but I think this is a window manager question. > Window, gnome, KDE, Mate, ... > > > If your widget is a QMainWindow or a QDialog add a size grip: > > self.setSizeGripEna

How to access Qt components loaded from file?

2014-11-18 Thread Juan Christian
I have this simple code that load any Qt Designer .UI file: from PySide.QtCore import QFile from PySide.QtGui import QApplication from PySide.QtUiTools import QUiLoader def loadui(file_name): loader = QUiLoader() uifile = QFile(file_name) uifile.open(QFile.ReadOnly) ui = loader.load(uifile) uifi

Re: How to access Qt components loaded from file?

2014-11-18 Thread Juan Christian
11/2014 13:18, Juan Christian a écrit : > > I have this simple code that load any Qt Designer .UI file: > > > > from PySide.QtCore import QFile > > from PySide.QtGui import QApplication > > from PySide.QtUiTools import QUiLoader > > > > > > def loadu

Re: How to access Qt components loaded from file?

2014-11-18 Thread Juan Christian
syntax is correct, I don't know why it failed, the btn is in the Form too, it's a QPushButton. The test func is just a simple func that returns a random text. On Tue Nov 18 2014 at 11:08:48 AM Juan Christian wrote: > Many thanks, worked. The only problem now is that I don't have

Re: How to access Qt components loaded from file?

2014-11-18 Thread Juan Christian
> > You can't have a slot like this: > > MainWindow.btn.clicked.connect(MainWindow.txtbox.setText(test())) > > because that's mean: "connect to the return of > MainWindow.txtbox.setText(test())" and it's not possible at this stage > of your program. > > Use instead a function: > > MainWindow.btn.cl

Re: How to access Qt components loaded from file?

2014-11-19 Thread Juan Christian
app.exec_() loop, so I need to have a trigger configured that will be called in a defined interval, then inside this trigger I configure the "set_avatar", "set_text", "set_btn_link", etc, is that right? On Tue Nov 18 2014 at 9:37:21 PM Chris Angelico wrote: >

Re: How to access Qt components loaded from file?

2014-11-19 Thread Juan Christian
onents just for testing.This shouldn't be normal, right? Am I doing something wrong? On Wed Nov 19 2014 at 7:00:43 PM Rob Gaddi wrote: > On Wed, 19 Nov 2014 20:47:31 + > Juan Christian wrote: > > > Let's say that I want to call the site in a 5min interval. I'm cur

Re: GUI toolkit(s) status

2014-11-20 Thread Christian Gollwitzer
guage, and that also does not help to attract people working on Tcl/Tk. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How to access Qt components loaded from file?

2014-11-20 Thread Juan Christian
Thu Nov 20 2014 at 1:43:21 PM Michael Torrie wrote: > On 11/19/2014 07:53 PM, Juan Christian wrote: > > Thanks, it's working using QTimer. The thing is that whenever the program > > is going to do something, in my case, draw a new QGroupBox with some > > components inside a

Re: How to access Qt components loaded from file?

2014-11-20 Thread Juan Christian
10:57 AM, Juan Christian wrote: > > So, I need to study QThreads, do you know any book or video-course that > > talks about this matter? I've seen the tutorials that you pointed but I > > need a "wider" approach regarding QThreads to really understand it and > > a

Re: How to access Qt components loaded from file?

2014-11-20 Thread Juan Christian
Another problem is that this doc doesn't use Python. On Thu Nov 20 2014 at 5:36:37 PM Juan Christian wrote: > Yes, I read everything and saw that stackoverlfow on Google too. I'm > reading this doc: http://pyqt.sourceforge.net/Docs/PyQt4/classes.html > > I just asked for a

Re: How to access Qt components loaded from file?

2014-11-20 Thread Juan Christian
**Back to the list So, as I said the PyQt doc is using C o.0 Yes, I read the tutorials, I'll google for some books and things related. On Tue Nov 18 2014 at 10:48:44 AM Vincent Vande Vyvre < vincent.vande.vy...@telenet.be> wrote: > Le 18/11/2014 13:18, Juan Christian a écrit : &

Re: How to access Qt components loaded from file?

2014-11-20 Thread Juan Christian
On Thu Nov 20 2014 at 7:07:10 PM Mark Lawrence wrote: > > You also need to study the difference between top posting, interspersed > posting and bottom posting. The second and third are very much the > prefered styles here. > Yes I know, but I'm using the new Google Inbox, and I limited to what I

Re: How to access Qt components loaded from file?

2014-11-20 Thread Juan Christian
On Thu Nov 20 2014 at 8:20:29 PM alister wrote: > > Then either do the necessary work (you have just proven you can)or find a > better way of communicating with this news group(NNTP or the mailing > list), otherwise you may find a number of good people simply ignore your > posts. > > While you are

Re: GUI toolkit(s) status

2014-11-21 Thread Christian Gollwitzer
different window systems Tk supports. Tcl is not just an interpreter, but also a big C library for handling strings, File I/O over VFS, Threads etc. All of this code in Tk would need to be replaced. It would be an almost complete rewrite of the non-GUI parts of Tk. Christian -- https://mail.python.org/mailman/listinfo/python-list

Re: How to access Qt components loaded from file?

2014-11-21 Thread Juan Christian
On Fri Nov 21 2014 at 8:05:30 AM alister wrote: > All of this VVV > [...] I'm sorry, I didn't know, but it seems there isn't any option to remove that in the Inbox (new Gmail), do you guys use any special program or client to use list? -- https://mail.python.org/mailman/listinfo/python-lis

Re: GUI toolkit(s) status

2014-11-22 Thread Christian Gollwitzer
Am 22.11.14 19:33, schrieb wxjmfa...@gmail.com: As you are rewriting unicode, a small suggestion/request. Assume that one processes a part of the Bible in polytonic Greek, one has to create a ton of temporary (locale) letters, <°)))o>< αὐτὸν τὸν ἰχθύα ὁ Χριστιανὸς ἔγραψε τρόλλοι -- h

Re: SQLite3 in Python 2.7 Rejecting Foreign Key Insert

2014-11-23 Thread Christian Gollwitzer
te> select * from foo; asdf sqlite> select * from bar; asdf sqlite> delete from foo; sqlite> select * from foo; sqlite> select * from bar; sqlite> Not sure, if this helps the OP, though. Christian -- https://mail.python.org/mailman/listinfo/python-list

Python Signal/Slot + QThred code analysis

2014-11-23 Thread Juan Christian
This is a continuation of my other topic "How to access Qt components loaded from file", it was getting big and the focus changed completely, the real question there was already answered, and we were talking about signal/slot, QThred and other things. So, I read on the web (didn't find books talki

Re: Python Signal/Slot + QThred code analysis

2014-11-24 Thread Juan Christian
Oh, and this code I made by myself, I didn't copy. That's why I want you guys to see if everything is ok. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Signal/Slot + QThred code analysis

2014-11-25 Thread Juan Christian
On Mon Nov 24 2014 at 11:56:31 PM Michael Torrie wrote: Looks alright. Does it work? Well, no =/ First I had to remove the multiple inheritance, because Qt doesn't allow that, so I removed the QObject. Second, just for testing I'm calling the module directly using: timer = QTimer() timer.start

Fwd: Python Signal/Slot + QThred code analysis

2014-11-25 Thread Juan Christian
On Tue Nov 25 2014 at 1:42:24 PM MRAB wrote: I think that the problem there is that strings don't have an __exit__ method. I don't understand what you said, what you mean by that? =/ -- https://mail.python.org/mailman/listinfo/python-list

<    2   3   4   5   6   7   8   9   10   11   >