Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I know quickly is supposed to make life easier for developers of all kinds, I'm just curious as to if there is an IDE for quickly (something like QtCreator or Monodevelop)?

If not, as a part B, is there one on the way?

share|improve this question
add comment

3 Answers

up vote 14 down vote accepted

The short answer is no.

A quickly edit command will open all python files in your default editor. You can however use your preferred editor or IDE for development.

share|improve this answer
1  
:( - some day I hope that I get a surprise in one of my curiosity questions :/ –  RolandiXor Mar 6 '11 at 0:22
add comment

Hope my answer comes on time, I just tested and you can use PyDev from eclipse.

Basically you first need to create your Quickly application as shown in the examples, then create a project in eclipse with PyDev (I used the same name) and set the location of your Quickly application as the project location. To be able to launch the project from Eclipse, rename the executable script called in the bin/ folder to something like *_launcher.py* (the name must differ from the module with the rest of the code).

Now, one nasty piece of work is to make the schema settings work (a bug about this is filed). First, to move automatic compiling from the quickly run script to *_launcher.py* append this code to the end of the file, right before the import command:

### BEGIN inserted from Quickly's run.py
# Compile schema if present
schemapath = os.path.abspath("data/glib-2.0/schemas")
if os.path.exists(schemapath):
    subprocess.call(["glib-compile-schemas", schemapath])
### END

Then to tell the application to look for schemas locally as well you have to edit the PyDev launch configuration and in the Environment tab add a variable XDG_DATA_DIRS with a value

/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/path/to/your/project/data

(adjust to match your project path)

You'll be able to modify any files and test if it works and even debug the program, and you can still use normal commands from quickly.

In my case, I already had the bazaar plugin installed in the eclipse enviromnent and I can see which files I need to commit and so on.

share|improve this answer
add comment

Following the bug report in the post by jmolinaso above there now seems to be an even easier way to run your Quickly application from the command line and set the ./bin/APPNAME file as the Main Debug file in Wing IDE.

If had trouble reading the notation in Patch for bug 976817 then this is a way to look at it: In your shiny folder you have a "bin" folder, with only one file with your application name. We can call it /bin/APPNAME. In the file APPNAME you need to add a couple of lines between: sys.path.insert(0, PROJECT_ROOT_DIRECTORY) and: if python_path:

The lines to be included are marked with a + in the patch mentioned above.

So just copy paste as follows:

After: sys.path.insert(0, PROJECT_ROOT_DIRECTORY) add:

    datadir = os.path.join(PROJECT_ROOT_DIRECTORY, "data")
    if 'XDG_DATA_DIRS' in os.environ:
        os.putenv('XDG_DATA_DIRS', "%s:%s" % (datadir, os.getenv('XDG_DATA_DIRS', '')))
    else:
        os.putenv('XDG_DATA_DIRS', datadir)

Leave the orignal: if python_path: and what follows, where it is. Also, please note the indents above, this should be indented with four spaces).

Now you can start your application from the command line, set ./bin/APPNAME as the main debug file in WingIDE (or any other IDE I suppose) and work with you Quickly app as you would with any other application, start/stopping the debugger from WingIDE, for instance. Quickly run will also still work from the command line.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.