How can I create Unity dash integration for my Python script?

drpaneas

I have written an awesome script in Python and I seriously think it should help many rookie Ubuntu users out there -- especially for a quick solution/tip. My script searches through AskUbuntu.com and finds you the best answer for your question. Yup, it does work, and it works pretty well.

How it works video: Ask - Find the best answer to your questions related to Ubuntu in just 1 second !!! - YouTube

GitHub Repo: github: drpaneas/ask

Now, all I need is to implement my Python script for the Dash instead of the terminal. For example, type a question in the Dash and then my script will print you the outcome. Can you help me to do that or could you please provide me some kind of tutorial or guide?

Andrea Corbellini

What you want to do is writing a Unity Scope, and probably also a Unity Lens. What Unity Lenses and Scopes are is explained (with helpful screenshots) in an article on howtogeek.com.

The Ubuntu Developer Portal provides an overview and also a helpful tutorial on writing Scopes in C. You said your application is written in Python and whilst this is a supported language, it is recommended to write scopes in C.

If you still want to write your Scope in Python, the web provides you with a tutorial that makes use of GObject Introspection.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

What is the Unity HUD and how can I install it on my system?

분류에서Dev

Can I install Ubuntu Unity Dash in other desktop environments?

분류에서Dev

How can I get my external IP address in a shell script?

분류에서Dev

How can I create my own spelling file for vim?

분류에서Dev

How can I create my class in different file?

분류에서Dev

Android - How can i create a "black list" for the files of my application

분류에서Dev

How can I tell my python script to wait for the "save as" dialogue box to pop out in chrome before executing the next block of the code?

분류에서Dev

How can I search manpages in 13.10’s dash?

분류에서Dev

how can i search for values that have "-" dash in them with elastic search

분류에서Dev

how can I delete apps that aren't installed in dash?

분류에서Dev

Python: How can I read csv and clean my data in a loop

분류에서Dev

In my hybrid project i can not create a viewbag

분류에서Dev

How can I create a feature branch from code changes in my development branch that I haven't checked in?

분류에서Dev

How can I restore the Unity Launcher?

분류에서Dev

Unity not loading, how can I troubleshoot?

분류에서Dev

How to remove an icon from Unity Dash?

분류에서Dev

How can I automatically create a Btrfs Snapshot before updating my system?

분류에서Dev

In a python script how can I ignore Apache Pig's Python Decorators for standalone unit testing

분류에서Dev

Can I trap a clock signal in my bash script?

분류에서Dev

How can I run a script on resolution change?

분류에서Dev

How can I make my script in /etc/profile.d to run after all other scripts in same directory?

분류에서Dev

I want to write a batch file that internally calls python script and I want python script to return some value to the batch file. how can I do that?

분류에서Dev

Why can't I create a new Thread with an instance of my class?

분류에서Dev

How can I remove Amazon search results from the dash or disable the feature?

분류에서Dev

How do I fix Unity from freezing and artifacts on my screen when I'm charging my laptop?

분류에서Dev

How can I benchmark my HDD?

분류에서Dev

How can I find my DHCP server?

분류에서Dev

How can I find my DHCP server?

분류에서Dev

How can I rewrite my controller URL?

Related 관련 기사

  1. 1

    What is the Unity HUD and how can I install it on my system?

  2. 2

    Can I install Ubuntu Unity Dash in other desktop environments?

  3. 3

    How can I get my external IP address in a shell script?

  4. 4

    How can I create my own spelling file for vim?

  5. 5

    How can I create my class in different file?

  6. 6

    Android - How can i create a "black list" for the files of my application

  7. 7

    How can I tell my python script to wait for the "save as" dialogue box to pop out in chrome before executing the next block of the code?

  8. 8

    How can I search manpages in 13.10’s dash?

  9. 9

    how can i search for values that have "-" dash in them with elastic search

  10. 10

    how can I delete apps that aren't installed in dash?

  11. 11

    Python: How can I read csv and clean my data in a loop

  12. 12

    In my hybrid project i can not create a viewbag

  13. 13

    How can I create a feature branch from code changes in my development branch that I haven't checked in?

  14. 14

    How can I restore the Unity Launcher?

  15. 15

    Unity not loading, how can I troubleshoot?

  16. 16

    How to remove an icon from Unity Dash?

  17. 17

    How can I automatically create a Btrfs Snapshot before updating my system?

  18. 18

    In a python script how can I ignore Apache Pig's Python Decorators for standalone unit testing

  19. 19

    Can I trap a clock signal in my bash script?

  20. 20

    How can I run a script on resolution change?

  21. 21

    How can I make my script in /etc/profile.d to run after all other scripts in same directory?

  22. 22

    I want to write a batch file that internally calls python script and I want python script to return some value to the batch file. how can I do that?

  23. 23

    Why can't I create a new Thread with an instance of my class?

  24. 24

    How can I remove Amazon search results from the dash or disable the feature?

  25. 25

    How do I fix Unity from freezing and artifacts on my screen when I'm charging my laptop?

  26. 26

    How can I benchmark my HDD?

  27. 27

    How can I find my DHCP server?

  28. 28

    How can I find my DHCP server?

  29. 29

    How can I rewrite my controller URL?

뜨겁다태그

보관