I am working on a Linux gui program where I want to be able
to click a Help button and open a man page using a viewer.
I wrote a search function that can be called several times,
if needed, with different arguments. I wrote a test program
that tries to open the Bash man page in a terminal and will
On Mon, 04 Apr 2016 13:54:56 -0600, Ian Kelly wrote:
> On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list
> wrote:
>> commandlist = commandlist.split(",")
>
> commandlist is a list.
>
>> command = [target, commandlist]
>&g
On Mon, 04 Apr 2016 21:02:53 +0100, MRAB wrote:
> On 2016-04-04 20:42, Wildman via Python-list wrote:
>> launch_help()
>>
> .Popen will accept either a string or a list of strings.
>
> You're giving it a list that contains a string and a list.
Yep, that wa
On Thu, 07 Apr 2016 13:02:46 +0200, Frantisek.Fridrich wrote:
> Hello.
>
> I run a third party program that can use a system installation of Python.
> I have to modify environment variables:
> PYTHONPATH,
> PATH,
> LD_LIBRARY_PATH.
>
> All these environment variables are empty at the beginning
On Tue, 12 Apr 2016 23:36:26 -0400, kamaraju kusumanchi wrote:
> Is there a way to get hourly weather forecast data (temperature,
> chance of precipitation) from the command line in Debian Linux?
>
> Basically, I am trying to write a python program that will send myself
> an email if it is going
On Thu, 14 Apr 2016 02:31:59 -0700, Sergio Spina wrote:
> I'm running a python3 program that requires html5lib but I receive the error
> No module named 'html5lib'.
>
> Here are two session of terminal:
>
> sam@pc ~ $ python
> Python 2.7.9 (default, Mar 1 2015, 12:57:24)
> [GCC 4.
On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote:
> There's been a bit of chatter lately about the moderation on the Python
> List (and, indirectly, comp.lang.python). The list moderators have
> suspended a couple of posters for a while and we've been discussing a
> little our policy toward
On Wed, 27 Apr 2016 10:13:45 -0700, bharadwajsrivatsa wrote:
> I tried installing Python 2.7.11 on HP-UX which already has all
> the build and run time dependencies installed on it such as
> openssl, libffi, etc. But after installing python , I tried
> installing some open source packages using pi
On Mon, 16 May 2016 12:46:13 -0700, netcrime4 wrote:
> My team is getting more projects that it can handle so we are looking for
> Python programers to join. You will be given tasks to complete full or part
> of the project.
>
> Majority of projects consist of data mining(scraping) so experence
On Thu, 19 May 2016 01:47:33 +1000, Steven D'Aprano wrote:
> Is this the simplest way to get the middle N characters?
This will return a sub-string of any length starting at any
point. This is the way the old VB mid$ function worked.
def mid(string, start, length):
# start begins at 0
i
On Tue, 24 May 2016 10:44:56 -0700, Ned Batchelder wrote:
> On Tuesday, May 24, 2016 at 12:44:04 PM UTC-4, Steven D'Aprano wrote:
>> On Tue, 24 May 2016 12:19 pm, Ned Batchelder wrote:
>>
>> > Ugh, can we please stop with the "well, actually" pedantic tangents?
>>
>> With respect, no.
>>
>> Thi
On Thu, 02 Jun 2016 04:22:45 -0700, Muhammad Ali wrote:
> Hi,
>
> I use windows regularly, however, I use linux for only my research work at
> supercomputer. In my research field (materials science) most of the scripts
> are being written in python with linux based system. Could I installed suc
On Mon, 20 Jun 2016 01:01:21 -0700, Lawrence D’Oliveiro wrote:
> On Monday, June 20, 2016 at 7:32:54 PM UTC+12, Marko Rauhamaa wrote:
>
>> Width/height ratio of the pyramid of Cheops was so close to π/2 that UFO
>> enthusiasts were convinced alien technology was used in the construction
>> of the
On Tue, 21 Jun 2016 20:50:24 -0700, Elizabeth Weiss wrote:
> i=1
> while i<=5:
>print(i)
>i=i+1
>
> The result is:
> 1
> 2
> 3
> 4
> 5
>
> Why is one of the results 5 since i=i+1? Should the maximum result be 4 since
> 4 +1=5?
>
> Thanks for your help!
The operator '<=' means less th
On Mon, 11 Jul 2016 19:21:56 +0200, Jahn wrote:
> Hi ,
> Does anyone use Python for developping applications that work with a touch
> screen?
>
http://www.technolabsz.com/2011/08/how-to-make-touch-screen-user-interface.html
--
GNU/Linux user #557453
The cow died so I don't need your bull!
On Sun, 17 Jul 2016 05:01:21 -0700, ldompeling wrote:
> I installed python 3.4 and set my python path to PYTONPATH:/usr/bin/python3.4
>
> When I try to import pyaudio then I get this error:
> Python 3.4.2 (default, Oct 19 2014, 13:31:11)
> [GCC 4.9.1] on linux
> Type "help", "copyright", "credits
On Tue, 26 Jul 2016 12:22:16 -0500, Carter Temm wrote:
> Hi,
> I’m writing a couple different projects at the moment, and when I
> compile it into a single executable using pyinstaller, it becomes
> extremely large. I’m guessing this is because of the modules used.
> Because I’m not that skilled a
I tried posting this already but it didn't make it. I am
trying again...
On Tue, 13 Nov 2018 01:07:06 +0530, srinivasan wrote:
> Dear Python Experts,
>
> *First method:*
>
> I need to get the IP address basically the gateway IP
I am assuming your platform is Linux. If I am incorrect then
ign
In the past I have participated in the group without any
problems. I access the forum through the usenet mirror
and I am still using the same newsreader and account.
Recently I made some followup posts to the group and they
never showed up. Have I been banned? If so, I would
appreciate it to kno
On Tue, 20 Nov 2018 16:39:39 +, Jon Ribbens wrote:
> On 2018-11-20, Wildman wrote:
>> In the past I have participated in the group without any
>> problems. I access the forum through the usenet mirror
>> and I am still using the same newsreader and account.
>> Recently I made some followup p
On Sun, 25 Nov 2018 22:43:10 +0530, srinivasan wrote:
> Dear Python Experts Team,
>
> As am newbie still learning the python syntax from past 2 weeks, Excuse me,
> If this might be silly question, As I am trying to execute shell command
> (ie, nmcli) using "subprocess.Popen".
>
> *return pro
On Fri, 30 Nov 2018 16:42:06 -0500, Benjamin Schollnick wrote:
> Folks,
>
> Can anyone explain to me why RAR support isn’t available natively in python?
>
> We have the zipfile and tarfile modules…
>
> Yes, there is rarfile and PaTools but they both rely on RAR being available
> to shell out
On Mon, 14 Jan 2019 11:57:33 +, Alex Ternaute wrote:
> Hi there,
>
> I want to know the number of columns of the terminal where python2 writes
> it's outputs.
>
> In a terminal, I type
> $ echo $COLUMNS
> 100
>
> But in Python, os.getenv("COLUMNS") gets nothing.
> It gets nothing as well i
On Sun, 24 Feb 2019 09:09:22 -0800, Rich Shepard wrote:
> When placing widgets (e.g., Entry, Spinbox) in a grid layout can a length
> (visible width) be specified? For example, a telephone extension is a shorter
> string than the number itself.
The height and width can be specified in the command
On Tue, 14 May 2019 11:22:54 -0600, Chip Towner wrote:
> I am trying to use tkinter and when I attempt to do so Python crashes. I am
> accessing Python (v 3.6.8) in Spyder (v3.6) from Anaconda. The version of
> TkVersion tells me the version is 8.6 and the Anaconda environment browser
> tells
On Wed, 26 Jun 2019 13:25:15 +0200, Cecil Westerhof wrote:
> I need to write a desktop program. I choose to use tkinter. How can I
> make sure the window title is visible? For example when I have the
> following code:
> from tkinter import Button, filedialog, Label, messagebox, Tk
>
>
>
On Wed, 26 Jun 2019 15:05:15 +0200, Cecil Westerhof wrote:
>> OK, then I will have to live with it.
I did find some references to a method where you first disable
the Tkinter title bar using overrideredirect(True). Then you
create a new title bar using a frame and canvas. You can then
set the f
On Wed, 26 Jun 2019 17:47:39 +0200, Cecil Westerhof wrote:
> I just started with GUI stuff in tkinter. I have a progressbar, but I
> want it to be only visible when it is used. So I tried the following:
> window = Tk()
> window.title(window_str)
> frame = Frame(window)
> frame.pac
On Thu, 04 Jul 2019 10:36:36 +1000, Cameron Simpson wrote:
> On 03Jul2019 16:57, Jach Fong wrote:
>>I have the test0.py below. I expect to see 'abcd' showing in the notepad
>>window:
>>-
>>import subprocess as sp
>>p0 = sp.Popen('notepad.exe', stdin=sp.PIPE)
>>p0.communicate(input=b'abcd
On Thu, 01 Aug 2019 16:31:02 +0300, adam kabbara wrote:
> Hello I am having trouble with tkinter when I enter the command from tkinter
> import* I get an error message
>
What was the error and what version of Python are
you using?
For Python 2 you need... from Tkinter import*
--
GNU/Linux u
On Sun, 11 Aug 2019 12:50:29 -0400, slefkowitz wrote:
> Just getting started with Python.
>
> Downloaded 3.7.4 rom python.org
>
> I wrote program in Notepad, saved it with a ".py" extension.
>
> What do I do next? How do I execute a program?
I am assuming you are using Windows since you poste
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote:
> We upgraded a server to 18.04 and now when I start typing
> a python file (seems to be triggered by the .py extension)
> the tabs default to 4 spaces. We have decades of code that
> use tab characters, and it has not been our intention to
> chan
On Mon, 09 Sep 2019 10:23:57 -0700, Tobiah wrote:
> We upgraded a server to 18.04 and now when I start typing
> a python file (seems to be triggered by the .py extension)
> the tabs default to 4 spaces. We have decades of code that
> use tab characters, and it has not been our intention to
> chan
What is the best approach for launching a Python GUI program
on a Linux platform. The program will be distributed in .deb
format. So the .deb will contain a menu file as well as a
.desktop file. The post install script will update the system
menu.
My question is how should the program be execut
On Tue, 12 Nov 2019 18:39:38 +, Rhodri James wrote:
> On 12/11/2019 18:25, Rob Gaddi wrote:
>> On 11/12/19 10:06 AM, Wildman wrote:
>>> What is the best approach for launching a Python GUI program
>>> on a Linux platform. The program will be distributed in .deb
>>> format. So the .deb will c
On Sun, 17 Nov 2019 18:27:45 +, Barry Scott wrote:
>> On 12 Nov 2019, at 20:24, Wildman via Python-list
>> wrote:
>>
>> Yes, I prefer to envoke env in the shebang line instead of
>> depending on the path. Paths can change especially in a
>> multi-user s
On Tue, 19 Nov 2019 05:09:07 +1100, Chris Angelico wrote:
> On Tue, Nov 19, 2019 at 5:06 AM Wildman via Python-list
> wrote:
>>
>> On Sun, 17 Nov 2019 18:27:45 +, Barry Scott wrote:
>>
>> >> On 12 Nov 2019, at 20:24, Wildman via Python-list
>> >
On Mon, 18 Nov 2019 22:15:31 +0100, Peter J. Holzer wrote:
> On 2019-11-18 15:01:57 -0600, Wildman via Python-list wrote:
>> On Tue, 19 Nov 2019 05:09:07 +1100, Chris Angelico wrote:
>> > On Tue, Nov 19, 2019 at 5:06 AM Wildman via Python-list
>> > wrote:
>> >
On Wed, 04 Dec 2019 20:25:33 +, RobH wrote:
> I am trying to do this project on a pi zero:
>
> http://frederickvandenbosch.be/?p=1365
>
> I copied the code to the pi zero Download folder and when I run it I get
> the above error at line 4
> Import Adafruit_SSD1306
>
> I am using python ver
On Mon, 09 Mar 2020 11:47:24 +0530, sachin thakur wrote:
What is the problem? If you attached a screenshot to your post
it was dropped. This is a text only group. Explain the problem
or put the screenshot on a cloud site such as Dropbox and post
the link.
--
GNU/Linux user #557453
The cow di
On Sat, 09 May 2020 22:06:01 +0530, Akshay Ghodake wrote:
> Hello,
>
> I want a help to concatenation of multiple video files into a single file
> in python.
>
> Any help will be greatly appreciated.
>
> Best regards,
> Akshay Ghodake
This might help...
https://kkroening.github.io/ffmpeg-pyth
I am familiar with OO programming but I am new to Python
and Tkinter. I am working on a gui program that creates
a couple of temporary files. As part of the Exit button
command they are deleted. If the program is shut down
using the window close button [X], the exit button code
is not executed a
On Tue, 23 Feb 2016 16:19:43 -0600, Wildman wrote:
>
Thanks to Christian and Chris. You both gave me much
to think about and to experiment with. That adds to
my on-going learning experience.
This is the first thing I tried:
The Exit button has this: command=self.quit
Then I have this:
def
As part of a program I am working on I want to display a
48x48 XBM image on the main window. I have done a lot
of searching for code snippets and I found what appears
to be the correct way to do it using a Label. So far I
have not been able to get it to work. I have tried
different variations of
On Fri, 26 Feb 2016 11:35:58 -0800, Anita Goyal wrote:
> This course (...)
What!? No peas? I like peas with spam.
--
GNU/Linux user #557453
The cow died so I don't need your bull!
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 26 Feb 2016 22:49:58 +0100, Peter Otten wrote:
> Wildman via Python-list wrote:
> It's not you, the program as you wrote it should and would show the image,
> were it not for an odd quirk in how images are handled in tkinter:
>
> You have to keep an explicit refer
I want to take an image file, convert it to XBM format and
display it. Thanks to Mr. Otten I can open and display the
XBM image without any problems. The script first calls an
external program for the image conversion then I can open
and display it. Of course, I am left with the XBM file that
ne
On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote:
> Wildman via Python-list wrote:
>
>> I want to take an image file, convert it to XBM format and
>> display it. Thanks to Mr. Otten I can open and display the
>> XBM image without any problems. The script first call
On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote:
> An exception is raised because you pass the command as a single argument
I did not realize that how the command was passed would
make such a difference. I guess I am stuck in my old
VB habits for creating variables. You don't have to
s
On Tue, 01 Mar 2016 20:30:59 +0100, Christian Gollwitzer wrote:
> Am 29.02.16 um 22:51 schrieb Wildman:
>> I want to take an image file, convert it to XBM format and
>> display it. Thanks to Mr. Otten I can open and display the
>> XBM image without any problems. The script first calls an
>> exte
On Tue, 01 Mar 2016 12:56:03 -0600, Wildman wrote:
> On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote:
>
>> An exception is raised because you pass the command as a single argument
>
>
>
> I did not realize that how the command was passed would
> make such a difference. I guess I am stu
Is there a way to prevent the dialog from displaying hidden
directories? My research has not found anything relating
to hidden files or directories.
--
GNU/Linux user #557453
"Philosophy is common sense with big words."
-James Madison
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 04 Mar 2016 13:31:52 -0700, Ian Kelly wrote:
> On Fri, Mar 4, 2016 at 11:50 AM, crankypuss wrote:
>> I don't know about that, but you've certainly shown that what I was told
>> about this group being helpful and non-combative is bullshit.
>
> Look in a mirror much?
You/We should thank $
Anybody have the correct method of adding an icon to a
window? I have found several code examples on the web
but they all result in an error. Thanks.
--
GNU/Linux user #557453
The cow died so I don't need your bull!
--
https://mail.python.org/mailman/listinfo/python-list
On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote:
> Anybody have the correct method of adding an icon to a
> window? I have found several code examples on the web
> but they all result in an error. Thanks.
I found this and it works in Linux but only with black
and white xbm images (I would pre
On Sat, 05 Mar 2016 18:08:15 +, Grant Edwards wrote:
> On 2016-03-05, Wildman wrote:
>
>> Anybody have the correct method of adding an icon to a
>> window? I have found several code examples on the web
>> but they all result in an error. Thanks.
>
> You'll have to be a lot more specific a
On Sat, 05 Mar 2016 18:38:57 +, Mark Lawrence wrote:
> On 05/03/2016 16:47, Wildman via Python-list wrote:
>> Anybody have the correct method of adding an icon to a
>> window? I have found several code examples on the web
>> but they all result in an error. Thanks.
>
On Sat, 05 Mar 2016 19:36:19 +0100, Christian Gollwitzer wrote:
> Am 05.03.16 um 19:10 schrieb Wildman:
>> On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote:
>>
>>> Anybody have the correct method of adding an icon to a
>>> window? I have found several code examples on the web
>>> but they all re
On Sat, 05 Mar 2016 21:55:40 +0200, Serhiy Storchaka wrote:
> On 05.03.16 18:47, Wildman via Python-list wrote:
>> Anybody have the correct method of adding an icon to a
>> window? I have found several code examples on the web
>> but they all result in an error. Th
On Sat, 05 Mar 2016 16:38:08 -0500, Terry Reedy wrote:
> On 3/5/2016 11:47 AM, Wildman via Python-list wrote:
>> Anybody have the correct method of adding an icon to a
>> window? I have found several code examples on the web
>> but they all result in an error. Thanks.
I apologize to the group for my lack of information in
my original post. I will do better in the future. I
very much want to remain in good standing in this group
because of all the knowledgeable people here.
Thanks again to everyone that replied and helped me
solve my problem.
--
GNU/Linux u
On Sun, 06 Mar 2016 10:16:55 +0100, Christian Gollwitzer wrote:
> 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.cal
On Mon, 14 Mar 2016 20:56:44 +, Val Krem wrote:
> #!/usr/bin/python
On some Linux systems python is installed in /usr/local/bin.
I would suggest the hash-bang below then python will run no
matter where it was installed...
#!/usr/bin/env python
As a python newbie myself, I can't really give
On Mon, 14 Mar 2016 20:56:44 +, Val Krem wrote:
> #!/usr/bin/python
On some Linux systems python is installed in /usr/local/bin.
I would suggest using the hash-bang below. It will insure
python will run no matter where it was installed.
#!/usr/bin/env python
--
GNU/Linux user #557453
May
I have a gui that has text widget and I want to be able to
copy to the clipboard the text that is highlighted or the
text widget's entire contents if no text is highlighted.
This line of code works for the highlighted text:
text2copy = self.text.get(tk.SEL_FIRST, tk.SEL_LAST)
However, this co
On Tue, 22 Mar 2016 02:01:53 +, MRAB wrote:
> On 2016-03-22 01:47, Chris Angelico wrote:
>> On Tue, Mar 22, 2016 at 12:24 PM, Wildman via Python-list
>> wrote:
>>> I have a gui that has text widget and I want to be able to
>>> copy to the clipboard th
On Tue, 22 Mar 2016 12:47:11 +1100, Chris Angelico wrote:
> On Tue, Mar 22, 2016 at 12:24 PM, Wildman via Python-list
> wrote:
>> I have a gui that has text widget and I want to be able to
>> copy to the clipboard the text that is highlighted or the
>> text widget's
Platform: Linux
Python: v.2.7.9
Tkinter: v.8.6.2
My program has some buttons for file operations, load_image,
save_image, and quit. I would like to bind a key that will
execute the procedures for each of the buttons. The binding
for the quit button was easy...
root.bind("", quit)
root.bind("",
On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote:
> On 2016-03-23 02:46, Wildman via Python-list wrote:
>> My question is how do I coax bind into executing the
>> button procedures? Or is there a way to generate the
>> button click event from the binding?
>>
> It wo
On Tue, 22 Mar 2016 23:52:57 -0400, Terry Reedy wrote:
> On 3/22/2016 10:46 PM, Wildman via Python-list wrote:
>> Platform: Linux
>> Python: v.2.7.9
>> Tkinter: v.8.6.2
>>
>> My program has some buttons for file operations, load_image,
>> save_image, and
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote:
> On 3/23/2016 12:28 AM, Wildman via Python-list wrote:
>> On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote:
>>
>>> On 2016-03-23 02:46, Wildman via Python-list wrote:
>>>> My question is how do I coax
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote:
> def load_image(self, _):
> # load image file
>
> You must pass the bound method, as you did, and not the function itself
> (which has two parameters).
I meant to ask a followup question in my previous post but
it slipped my
On Wed, 23 Mar 2016 20:34:08 -0400, Dennis Lee Bieber wrote:
> On Wed, 23 Mar 2016 10:58:09 -0500, Wildman via Python-list
> declaimed the following:
>
>>On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote:
>>
>>> def load_image(self, _):
>>>
On Thu, 24 Mar 2016 08:06:28 -0400, Dennis Lee Bieber wrote:
> On Wed, 23 Mar 2016 21:17:57 -0500, Wildman via Python-list
> declaimed the following:
>
>>
>>I was referring to procedures called by a button click as
>>opposed to a procedure calledd from elsewhere in t
On Thu, 24 Mar 2016 13:24:16 -0700, kevind0718 wrote:
> Hello:
>
> newbie Tkinter question
>
> If I run the code below two windows appear.
> One empty and one with the text box and button.
>
> Why? please
>
> KD
>
>
>
> from Tkinter import *
>
> class MyDialog:
> def __init__(self, pa
On Thu, 24 Mar 2016 21:43:26 -0400, Dennis Lee Bieber wrote:
> On Thu, 24 Mar 2016 11:19:52 -0500, Wildman via Python-list
> declaimed the following:
>
>>
>>I believe I understand. Thanks. If you can't tell, I'm new to
>>Python so the learning process is
I have a program that I have been trying to rewrite so it will
run on Python 2.7 and 3.4. It has been a pain to say the least.
Thank $DIETY for aliases. Anyway, I got it all working except
for one thing. The program has an embedded icon. It is displayed
in the window's titlebar. The icon is a
On Fri, 25 Mar 2016 01:30:17 -0400, Terry Reedy wrote:
> On 3/25/2016 1:10 AM, Wildman via Python-list wrote:
>> I have a program that I have been trying to rewrite so it will
>> run on Python 2.7 and 3.4. It has been a pain to say the least.
>> Thank $DIETY for aliases.
On Fri, 25 Mar 2016 00:34:13 -0500, Zachary Ware wrote:
> On Fri, Mar 25, 2016 at 12:10 AM, Wildman via Python-list
> wrote:
>> I have a program that I have been trying to rewrite so it will
>> run on Python 2.7 and 3.4. It has been a pain to say the least.
>> Thank $DI
On Sat, 26 Mar 2016 01:42:37 +, Mark Lawrence wrote:
> On 25/03/2016 05:10, Wildman via Python-list wrote:
>> I have a program that I have been trying to rewrite so it will
>> run on Python 2.7 and 3.4.
>
> This http://pythonhosted.org/six/ might come in handy in fut
I use some key bindings in my program. They are declared
like this:
root.bind("" + "q", quit)
root.bind("" + "q", quit)
root.bind("" + "Q", quit)
root.bind("" + "Q", quit)
The above binds both Alt keys with upper and lower case 'q'.
Is there a way to combine the s
On Sat, 26 Mar 2016 17:47:02 +, MRAB wrote:
> On 2016-03-26 17:10, Wildman via Python-list wrote:
>> I use some key bindings in my program. They are declared
>> like this:
>>
>> root.bind("" + "q", quit)
>> root.bind
On Sun, 27 Mar 2016 08:13:49 -0700, mohamadmaaz5 wrote:
>> > Hello there,
>> > I found a python script
The formatting of the script is all wrong. There are many
spaces that should not be there and no indentations. It
could take a long time to figure it out. It could be just
a copy/paste proble
On Sun, 27 Mar 2016 09:15:39 -0700, mohamadmaaz5 wrote:
> On Sunday, March 27, 2016 at 6:07:43 PM UTC+2, Wildman wrote:
>> On Sun, 27 Mar 2016 08:13:49 -0700, mohamadmaaz5 wrote:
>>
>> >> > Hello there,
>> >> > I found a python script
>>
>> The formatting of the script is all wrong. There are m
On Sun, 27 Mar 2016 09:40:57 -0700, mohamadmaaz5 wrote:
> On Sunday, March 27, 2016 at 6:27:59 PM UTC+2, Wildman wrote:
>> On Sun, 27 Mar 2016 09:15:39 -0700, mohamadmaaz5 wrote:
>>
>> > On Sunday, March 27, 2016 at 6:07:43 PM UTC+2, Wildman wrote:
>> >> On Sun, 27 Mar 2016 08:13:49 -0700, mohama
On Mon, 28 Mar 2016 10:36:44 +0100, Mark Lawrence wrote:
> On 26/03/2016 02:37, Wildman via Python-list wrote:
>> On Sat, 26 Mar 2016 01:42:37 +, Mark Lawrence wrote:
>>
>>> On 25/03/2016 05:10, Wildman via Python-list wrote:
>>>> I have a program that I ha
On Mon, 28 Mar 2016 14:10:28 -0700, jenswaelkens wrote:
> I'm using the tkFileDialog-module in Python 2.7, it works fine except for one
> thing: when I add a title, the title isn't shown.
>
> e.g. I have this line of code:
> inputfilename=tkFileDialog.askopenfilename(defaultextension=".dat",
>
On Thu, 09 Feb 2017 11:16:18 -0600, Andreas Paeffgen wrote:
> I guess which does not return an error code. If it does not find
> anything, the return is just blank. If it finds something, the path is
> returned.
>
> So the change of code did not help, because there is just no error message.
> C
On Fri, 10 Feb 2017 09:53:32 +1100, Cameron Simpson wrote:
> On 09Feb2017 11:59, Wildman wrote:
>>Here is a method I frequently use to replace the which
>>command. (air code)
>>
>>import os
>>pathlist = os.environ["PATH"].split(":")
>>
>>def which(target)
>>for p in pathlist:
>>fullpa
On Mon, 13 Feb 2017 08:30:32 -0800, lauren.sophia1998 wrote:
> Hello! I have 2 python assignments that I just can't figure out. The first
> one returns the same thing no matter what I input and the second won't accept
> "done" to stop the program and return answers. Please help!
>
> 1)
> print
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote:
> So I tried both of these and they didn't change anything, the python shell
> printed the same things...
The first assignment is overly complicated. The extra input functions are
useless. There is no loopback to check the input. Also,
On Sat, 18 Feb 2017 09:38:32 -0800, TTaglo wrote:
> i = 1
> f = open ('rosalind_ini5(1).txt')
> for line in f.readlines():
> if i % 2 == 0:
> print line
> i += 1
>
>
> How do i get output without breaks between the lines?
>
> Result:
>
> Other things just make you swear and cur
Python 3.4.2
Linux platform
I am working on a program that has tabs created with ttk.Notebook.
The code for creating the tabs is working but there is one thing I
have not been able to figure out. As is, the tabs are located up
against the lower edge of the caption bar. I would like to have
them
On Tue, 21 Feb 2017 12:02:50 -0600, Wildman wrote:
> Python 3.4.2
> Linux platform
>
>
> I am working on a program that has tabs created with ttk.Notebook.
> The code for creating the tabs is working but there is one thing I
> have not been able to figure out. As is, the tabs are located up
> a
On Tue, 21 Feb 2017 18:22:31 +, MRAB wrote:
> On 2017-02-21 18:02, Wildman via Python-list wrote:
>> Python 3.4.2
>> Linux platform
>>
>>
>> I am working on a program that has tabs created with ttk.Notebook.
>> The code for creating the tabs is worki
Python 3.4.2
Tkinter 8.6
Linux
I want to set the font in a GUI program I am working on.
Here is the pertinent code I am using...
from tkinter import font
myfont = font.Font(family='Helvetica', size=10, weight='bold')
Here is the error I get...
Traceback (most recent call last):
File "./test.
On Sun, 26 Feb 2017 09:17:00 +0100, Peter Otten wrote:
> Wildman via Python-list wrote:
>
>> Python 3.4.2
>> Tkinter 8.6
>> Linux
>>
>> I want to set the font in a GUI program I am working on.
>> Here is the pertinent code I am using...
>>
>&
On Fri, 10 Mar 2017 18:51:35 +, Chris Green wrote:
> I'm using the excellent tutorial at
> https://python-gtk-3-tutorial.readthedocs.io
> and occasionally want reference documentation, is there reference
> documentation for this on line?
https://developer.gnome.org/gtk3/
--
GNU/Linux user
On Tue, 21 Mar 2017 06:01:26 +1100, Chris Angelico wrote:
> On Tue, Mar 21, 2017 at 4:39 AM, Steve D'Aprano
> wrote:
>> And yet I'm forever being told by my Linux sys admin work mates "don't use
>> tabs, because they break everything". For another example, see JMZ's essay
>> (its already been lin
On Tue, 21 Mar 2017 15:15:14 +0100, Mikhail V wrote:
> And on linux console, by default one does not even have good
> possibilities for text-mode pseudographics, it was more relevant
> in DOS where one had rich possibilities and programmable
> binary fonts.
>
> Mikhail
Nonsense.
--
GNU/Linux
101 - 200 of 222 matches
Mail list logo