Hot answers tagged

29

You can program in .NET on ubuntu too. Well, sort of. There is an open source implementation of the .NET platform available called MONO. MONO apps can run on Ubuntu/Linux, Windows and Mac OS. Look for MonoDevelop in Ubuntu Software Center. Learn more about Mono in Ubuntu. Another option is Quickly. In my opinion Quickly is better for Ubuntu centric app ...


14

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.


13

Quickly can help you make cool apps using Python (pretty easy to learn and very popular) quickly!


12

Here a basic example: #!/usr/bin/env python from gi.repository import Gtk, Vte from gi.repository import GLib import os terminal = Vte.Terminal() terminal.fork_command_full( Vte.PtyFlags.DEFAULT, os.environ['HOME'], ["/bin/sh"], [], GLib.SpawnFlags.DO_NOT_REAP_CHILD, None, None, ) win = Gtk.Window() win.connect('delete-...


11

The good thing is that Quickly will handle this for you, so you don't have to worry about it at all :) Once you've added the import statement to add Twisted in your code, the next time you run the quickly package (or share or release or submitubuntu), Quickly will automatically detect that you're using it and will add it to the dependencies in the debian/...


10

Getting started quickly, so to say The easiest thing to do is to base your first template on an existing one, and modify it to your needs. After running the following command, you'll have an ubuntu-application-qt template based on the ubuntu-application original template. You'll find it on /home/$USER/quickly-templates, ready to modify to your heart's ...


10

Those three commands are intended as three levels of "officialness" to your release. share share does 2 main things: Packages your software with a version suffix like -public1 Uploads that package to a PPA So it's good for quickly getting code to testers. Ideally you'd use a separate PPA from your normal releases. release release does the same thing ...


10

The command quickly add indicator creates a file projectname/indicator.py where the indicator is created. self.indicator = AppIndicator3.Indicator('projectname', '', AppIndicator3.IndicatorCategory.APPLICATION_STATUS) change this line to: self.indicator = AppIndicator3.Indicator.new('projectname', '', AppIndicator3.IndicatorCategory.APPLICATION_STATUS) ...


9

quickly should support the EDITOR environmental variable. $ quickly help ubuntu-application edit Usage: quickly edit A convenience command to open all of your python files in your project directory in your default editor, ready for editing. If you put yourself EDITOR or SELECTED_EDITOR environment variable, this latter will be used. Also, if you ...


9

Quickly respects the $EDITOR variable, so if you set your editor to be Aptana then quickly edit will just fire that up for you. There is also an environment variable just for this: export QUICKLY_EDITOR=aptana Then do quickly edit & to fire up your editor and keep the command line open for your next steps. You can add QUICKLY_EDITOR to your ~/....


9

It's a fairly low level error but you should be able to fix this with installing it... From command line sudo apt-get install gtk2-engines-pixbuf or click the icon here: gtk2-engines-pixbuf Found the solution on Launchpad.


9

Try importing it like this: from gi.repository import Gtk from gi.repository.GdkPixbuf import Pixbuf, InterpType then: pixbuf = Pixbuf.new_from_file(filename) pixbuf = pixbuf.scale_simple(100, 100, InterpType.BILINEAR) I would recommend using the command below because it automatically scales it when it reads it in. Just specify how big (pixels) you ...


8

What's going on The <property name="icon"> settings refers to the window icon, not the application icon. As I understand it, the Ubuntu windowing server (X.org) squashes these to a tiny size after loading. If you don't recall from year 2009, they used to be used in this capacity: Using application icons instead Ubuntu Unity will use this low-res ...


8

from gi.repository import Gtk uses the new PyGObject instead of the older PyGTK that is used with import gtk.


8

Set the EDITOR environment variable to sublime and then quickly edit will use it: export EDITOR=/usr/bin/subl How do I set environment variables? Just add the above line to your ~/.bashrc file


8

The .desktop file has to be installed in the location where the bamf library knows about it. You should be able to test by copying the built .desktop file (which should be created from the .desktop.in), into your ~/.local/share/applications folder, and running update-desktop-database ~/.local/share/applications, though running this command may not be needed ...


8

Use package command to build a local package, specifying the --verbose option. This will give you the full output of the underlying tools Quickly invokes to create your package. Run it as such on your project folder: quickly package --verbose Another command that might help: python setup.py build Common issues Modules with syntax errors will cause ...


7

The Vala language is a programming language very similar to C#. It is still very young, but already has a lot of bindings to existing libraries (for example, GTK). It compiles to native binaries, so your users don't need an additional runtime, as they would for .NET. See an introduction to Vala for C# programmers.


7

I assume you mean you want to change the editor that Quickly loads when you ask it to. Well I did some sleuthing... I'll show you what I did followed by the answer. I fired off this command: sudo find / -name "*quickly*" -exec grep gedit {} \; That searches for all files with quickly in and then greps them for gedit. It was a long shot -- I should have ...


7

As of 12.04 Gtk3 is the default on 12.04. For 11.x Simple answer: No, it does not (Quickly 11.10). Extended answer: Since all the code produced by quickly can be edited, you can change it to support gtk3, but it does not come with support. There is however a branch of quickly in development that (only) supports gtk3. You can see the difference in the ...


7

OK, we need to get you ready using the usual PPA process (forget this Quickly business, it seems to be going Slowly ;) Forgive me for using your full name jeggy, but it's in your Launchpad account so not exactly secret: Sign the Code of Conduct Go to https://launchpad.net/codeofconduct Follow the instructions in this answer to sign it in one step. Set ...


7

I just ran into exactly the same problem. Here's my solution. from gi.repository import Notify Notify.init ('Application') notification = Notify.Notification.new ('Title', 'Message', 'dialog-information') notification.show ()


7

I have achieved a fade-out effect using pure GTK and CSS. It is only working in GTK 3.6 and I am not sure if a slide in / out effect would be possible, however, if you want, you can look at the source at launchpad.net/uberwriter It works through a state-change and then GTK Transitions... Maybe with height // width that would be possible, too. EDIT ...


6

Unfortunately, in the current state of Quickly, you cannot. However it maybe possible to have Quickly extended to support this in the future, and you could report a bug. I would caution against it though, since Quickly is not designed to use git, as it's really a tool for making it easier to use the Ubuntu related tools and environment to build Applications ...


6

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, ...


6

There are some ongoing attempts to create a Quickly template. You might have a look at the following if you'd like to contribute or try them out: Qt and QtQuick Quickly templates How to create a Quickly template


6

Developing for Ubuntu comprises a number of sections which it's important to think about as separate but associated elements: Project Creation When starting off a brand new project there will always be a set of best practices to follow and easiest routes to take. These are codified in the quickly project which provides a set of instant use templates for ...


6

Python is an interpreted scripting language. You don't just distribute the intermediate .pyc files because they're compiled for your system and won't make sense elsewhere. You distribute the source and that's compiled on the fly. That's not to say you can't just distribute .pyc files. PEP 3147 allows this and sets out a structure but it does come at a cost ...


6

You can also try to have a look at the help for the add command. You can do either of these: invoke the quickly help add command invoke the quickly tutorial command and browse to the add command reference From the outupt of quickly help add For instance 'quickly add dialog dialog-name' will create: A subclass of Gtk.Dialog called DialogNameDialog in ...


6

Translation files (.po files) should live under the same directory as the translation template (.pot file). That's generally the po/ folder: po/ myapp.pot de.po ca.po .. It's generally the job of the translators to create a .po file for their language out of the template and then send it to the developer, who will commit it to the source tree. Or the ...



Only top voted, non community-wiki answers of a minimum length are eligible