Quote: "The signal/slot mechanism may be nice in C++, but in Python it very
much fails to take advantage of the facilities of the language"
I'm not quite sure what you mean by this. I think the PyQt takes very much
advantage of pythons fascilities. I fail to see how it can be much easier than
it
ubiquity (1.4.4) feisty; urgency=low
* New partitioner:
- Mark unusable free space as such (part of LP: #86202).
- Add "Used" column (LP: #96126).
- Pressing Enter in the create/edit dialog mount point entry box
activates the OK button.
* Old partitioner: Work around yet anot
Oh, also, in PyGTK there's no need to mess about with signal mapping or
closures or auxiliary functions or anything to pass extra arguments to a
signal handler. You just give extra arguments to connect() and they get
passed to the signal handler. Easy.
--
prepare disk space contains "usertrap"
ht
I don't think your code was particularly wrong, but my version required
fewer handlers to be called when a button is toggled, so I prefer it.
The signal/slot mechanism may be nice in C++, but in Python it very much
fails to take advantage of the facilities of the language, and it
typically seems t
If the stuff I wrote did not work - you can tell me directly ;)
If it is just a matter of style then it is fine as long as it is fixed :)
I will try your code in herd 6 (or maybe get a build before).
One thing I however disagree upon is the "horrific" signal/slot
interface and reference-counting
Thanks for the suggestions. In the end (after much fighting with Qt's
horrific signal/slot interface and reference-counting problems) I went
for a slightly different approach, which I felt was a bit cleaner; I'll
paste the diff here for reference.
=== modified file 'ubiquity/frontend/kde-ui.py'
--
The solution I suggested seems to work.
I however missed a couple of "
(The way to connect in Python)
Notice the patch-file may not be the newest kde-ui modified.
** Attachment added: "Fixes problem"
http://librarian.launchpad.net/6760030/kde-ui.py
--
prepare disk space contains "usertrap"
h
If somebody can tell me to how to compile it and run the KDE-frontend I will be
happy to try the solution I suggested ...
(And probably find another if it does not work)
--
prepare disk space contains "usertrap"
https://launchpad.net/bugs/85980
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubu
The changes are for the kde-ui.py file (in frontend)
--
prepare disk space contains "usertrap"
https://launchpad.net/bugs/85980
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
It is not fixed in herd 5
And it should not be that hard to fix (I am however no Python expert)
I think the following will do the trick...
for extra in extra_options[choice]:
if extra == '':
disk_vbox.addSpacing(10)
else:
extra_button = QRadioButton(
ex
This is a known problem in the KDE frontend. Jonathan, there's a TODO
comment from me in the code (set_autopartition_choices) if you wouldn't
mind having a look ...
** Changed in: ubiquity (Ubuntu)
Status: Unconfirmed => Confirmed
--
prepare disk space contains "usertrap"
https://launchpa
** Changed in: Ubuntu
Sourcepackagename: None => ubiquity
--
prepare disk space contains "usertrap"
https://launchpad.net/bugs/85980
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
This problem is reported upon Feisty Herd 4.
--
prepare disk space contains "usertrap"
https://launchpad.net/bugs/85980
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
13 matches
Mail list logo